[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [FW-1] Problem Running Shell Scripts on Nokia
Sean, The error message may not relate to the shell script per se, but the commands inside. Check and make sure you have the command shell specified on the first line (#! /bin/sh for sh). It is also generally a good idea to fully qualify the path to each executable you reference ( /bin/egrep instead of grep, etc.). Here's a simple example of something I used to watch the arp table a while back.. #! /bin/sh /usr/sbin/arp -an |/usr/bin/egrep 'ea:32|fe:5e|db:f7' Hope this helps. Dale -----Original Message----- From: Mailing list for discussion of Firewall-1 [mailto:[email protected]]On Behalf Of Sean Donaghey/HDGH Sent: Monday, April 22, 2002 1:42 PM To: [email protected] Subject: [FW-1] Problem Running Shell Scripts on Nokia Hi, I have created my first shell script to do log rotation, and I am having a problem running it. The name of it is fwexport.sh, and I have placed it in /var/admin. I set the execution flag (chmod 700 fwexport.sh). The problem is that when I try to run it, I get an error back stating Command Not Found. I do a cd /var/admin, and then I have tried running by typing ./fwexport.sh, and even fwexport.sh, but I get the same Command Not Found. Any ideas on how to do it? Thanks, Sean P. Donaghey Sr. Technical Analyst Hôtel-Dieu Grace Hospital Windsor, Ontario Canada Tel:Ext. 3717 Fax:Email: [email protected] ================================================= To set vacation, Out Of Office, or away messages, send an email to [email protected] in the BODY of the email add: set fw-1-mailinglist nomail ================================================= To unsubscribe from this mailing list, please see the instructions at http://www.checkpoint.com/services/mailing.html ================================================= If you have any questions on how to change your subscription options, email [email protected] ================================================= ================================================= To set vacation, Out Of Office, or away messages, send an email to [email protected] in the BODY of the email add: set fw-1-mailinglist nomail ================================================= To unsubscribe from this mailing list, please see the instructions at http://www.checkpoint.com/services/mailing.html ================================================= If you have any questions on how to change your subscription options, email [email protected] =================================================
|