[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [FW-1] Problem Running Shell Scripts on Nokia
The first line of any Unix script must have the name of the program to run the script after a #! (a pound or hash mark followed by an exclaimimation mark). Always provide a full path to the program and no spaces before the #. Plain shell scripts on the Nokia would use the following first line: #! /bin/sh --- Sean Donaghey/HDGH <[email protected]> wrote: > 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] > ================================================= ===== -- Derek C. Jones - RCDD/LAN, CCDP, CCNA, MCSE, CNE Scouter - BSA Troop 994 Woodstock, GA http://www.geocities.com/dcjones21/ [email protected] __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ ================================================= 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] =================================================
|