... cut ...
> When I
> tried to run it by hand, my shell (ksh) would say that
> it couldn't find it. I tried in the /etc/rc.d
> directory, I tried using full path name, I tried
> chmoding it to 777 (I'm root) and then running it.
> Nothing worked. The file exists, ls sees it, I used
> the -F option to display an '*' after the file name so
> I'd see white space in the filename if there was any.
> There was none.
> In the rc.d directory I tried './rc.firewall', I also
> tried cutting the name from the results of a directory
> listing and pasting it to the command line. How else
> can I run this script?
Hi Jim,

I have seen that sort of behaviour after the script was created with a
Windows editor (and stored on the Linux box through Samba). DOS/Windows
handles cr/lf differently.
Open that script with you preferred Linux editor (I use pico, can't learn
vi), make a dummy change which you redo after it. Maybe you should also
check where the last line of the file ends with a cr. Then save and try to
start the script.

Hope that helps.

Regards,
Michael Doerner


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to