Re: Batch Files from Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 19, 2003 Thom Paine <admin@xxxxxxxxxxxxxxxxx> wrote:
> Is there a linux text editor that won't break the batch files when I
> edit them from the server for the login scripts that are run in windows?
> If I create a text file with pico, and try to run it from windows, it
> seems broken. I'm not sure what is wrong with it, but it seems like it's
> just one big long line.

Thom,

Use the unix2dos utility to convert Unix end-of-line (0x0A) characters to
CR-LF (0x0D 0x0A) pairs in any batch file to be run under DOS or Windows.

Conversely, be sure to run the dos2unix utility after editing a Unix
script file with a DOS/Windows editor like NOTEPAD.

For your convenience, versions of unix2dos and dos2unix exist for both
Windows and Linux.

--Doc Savage
  Fairview Heights, IL



-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux