Well, first, I think you're supposed to have the name of a shell after the
"#!".

Second, I have to ask...why can't you simply issue "/etc/rc.d/rc.firewall"
instead of having to cd to the directory in question?

That having been asked, if you feel you must have the "#!" at the top of
your script, put the path and name of a shell in.  However, I'm running a
number of backup scripts on my systems, which don't have a shell indicator
at the top, and "cd" to the necessary directories with no problem at all.

On Sun, 10 Dec 2000, Grant Nygren wrote:

> Hello,
>       I am trying to write a script file execute the following commands, but its
> not working.
>
> #!
> cd /etc/rc.d/
> ./rc.firewall
> cd /root
>
> The problem is in the second line. I have to really be in /etc/rc.d/  and
> enter "./rc.firewall" for the file to execute. I would like to automate
> this. Any suggestions?
> ==========
> Grant
> [EMAIL PROTECTED]
> Witty QUOTE: Hmm...ah...hmm...Haa!...err...aaaa...Ah!...no *sigh*
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to