[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [FW-1] Problem Running Shell Scripts on Nokia
I'd also try removing the space after the #! in the first line Bill Barkell -----Original Message----- From: Atkinson, Ron [mailto:[email protected]] Sent: Tuesday, April 23, 2002 11:28 AM To: [email protected] Subject: Re: [FW-1] Problem Running Shell Scripts on Nokia Out of curiosity, did you write the script on another computer (Microsoft Windows) and then transfer the file to the Nokia box? If so, did you do an ASCII transfer? I had to look up the original thread to see what the error was, and this is a simliar error that one gets when there are control characters in a shell script. Usually you can just fire up 'vi' and do something like %s/^V^M//g (I think?, with vi there's always more than one way to do anything) where ^ is the control key (Control-V) and it will remove all the ^M characters. Or just do an ASCII transfer next time from Windows to Unix and it should take care of the EOL translation for you. Ron Atkinson -----Original Message----- From: Sean Donaghey/HDGH [mailto:[email protected]] Sent: Tuesday, April 23, 2002 8:45 AM To: [email protected] Subject: [FW-1] Problem Running Shell Scripts on Nokia Here is my script in question. #! /bin/sh ./var/etc/pm_profile cd /var/fw/log PERIOD=`date +%d%b%Y-%H:%M:%S` LOGDIR=/var/admin/logs $FWDIR/bin/fw logswitch $PERIOD 2> /dev/null 2>&1 $FWDIR/bin/fw logexport -d , -i $PERIOD.log > $LOGDIR/fwlog.$PERIOD Everything seems to point to the very first line. I have commented out everything but the #! /bin/sh line, and I still get the error. If I comment out this line, I get script errors on the rest, so it looks like it is running the script. I have manually run /bin/sh, and get the # prompt, so I know it works okay. Thanks, Sean ================================================= 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] ================================================= The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. ================================================= 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] ================================================= The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. ================================================= 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] =================================================
|