[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [FW-1] Problem Running Shell Scripts on Nokia
. /var/etc/pm_profile Should be a space between the period (.) and the profile. Try running the script as the argument to the shell. That will test if the first line is the problem. FW1> sh fwlogscript.sh --- Sean Donaghey/HDGH <[email protected]> wrote: > 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] > ================================================= ===== -- 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] =================================================
|