> #!
> cd /etc/rc.d/
> ./rc.firewall
> cd /root

Um.. you're new to this stuff aren't you? :)

it's #! then the interpreter: #!/bin/sh or #!/bin/bash in this case

cd /etc/rc.d/ is fine.

./rc.firewall (provided this script exists in /etc/rc.d) is fine too.

cd /root for what reason? If you do nothing in /root then this line is
pointless. Remember, you're invoking a NEW shell which will run as the uid
of the parent (the caller). There is no reason to return to /root after if
you're not doing anything there.

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

Read above.

-Statux



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

Reply via email to