Re: Batch Files from Windows

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 19 Aug 2003 10:07:25 -0400, Thom Paine 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.

That's the case when the editor replaces the line delimiters. The
line delimiters on Windows (carriage return + linefeed) differ from
those on Unix/Linux (just linefeed).

You could use "dos2unix" and "unix2dos" to convert your files.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE/QjnL0iMVcrivHFQRAomsAJ44y7+GS6Wyq2Ic4f9gOCwNA6h0pQCfRL4r
lteYrwVzawGubHKUY7vlPxY=
=pOLV
-----END PGP SIGNATURE-----


-- 
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