Re: Running file

2000-12-10 Thread Statux
> #! > 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 not

Re: Running file

2000-12-10 Thread Leonard den Ottolander
Hi Grant, Change the script to #!/bin/sh cd /etc/rc.d/ ./rc.firewall cd /root Make the script executable (chmod 744 script), as well as rc.firewall. When running the script from the command line use "./script" instead of just "script".

Running file

2000-12-10 Thread Grant Nygren
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

Re: Running file

2000-12-10 Thread Jalal Hajiqolamali
3 -0500 > To: [EMAIL PROTECTED] > From: Grant Nygren <[EMAIL PROTECTED]> > Subject: Running file > Mime-Version: 1.0 > X-Loop: [EMAIL PROTECTED] > X-BeenThere: [EMAIL PROTECTED] > X-Mailman-Version: 2.0beta4 > List-Id: General Red Hat discussion list > > H

Re: Running file

2000-12-10 Thread Mike Burger
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,