what do the cron logs show you?
>I have added the path in the script as below but the result is the same.
>Any
> other thoughts?
> /opt/CPfw1-50-04/bin/fwm logexport -i 2004-08-15_235900.log -o
> 2004-08-15_235900.txt
>
> Thanks
>
> -----Original Message-----
> From: Mailing list for discussion of Firewall-1
> [mailto:FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM]On Behalf Of Tom
> Brown
> Sent: 23 August 2004 15:39
> To: FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM
> Subject: Re: [FW-1] cronjob problem on secureplatform
>
>
> make sure fwm is in the PATH of the user that is running the script or put
> the PATH into the script
>
>> Hi David,
>>
>> I have a problem with a cronjob that does the log export and ftp from a
>> secure platform box. When run manually it works fine but
>> when in a cron job it does not run correctly. The script will run but it
>> just skips the fwm logswitch command. The script is below.
>> I am a real newbee on this stuff so any help would be greatly
>> appreciated.
>> My PATH includes the checkpoint directories /opt/CPfw1-50-04/
>>
>> Thanks
>>
>> #! /bin/csh
>> CPDIR=/opt/CPshrd-50-04
>> export CPDIR
>> CPMDIR=/opt/CPfw1-50-04
>> export CPMDIR
>> cd /opt/CPfw1-50-04/log/
>> cp testtest /home/trinity --> it does this
>> fwm logexport -i 2004-08-15_235900.log -o 2004-08-15_235900.txt --> it
>> doesn't do this
>> cp test /home/trinity --> it does this
>> gzip -9 2004-08-15_235900.txt
>> ftp -i -n -v -d "ip add" <<SCRIPT
>> user username password
>> binary
>> cd sct
>> put 2004-08-15_235900.txt.gz
>> exit
>> SCRIPT
>> cp testdate /home/trinity --> it does this
>>
>> =================================================
>> To set vacation, Out-Of-Office, or away messages,
>> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
>> 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
>> fw-1-owner AT ts.checkpoint DOT com
>> =================================================
>>
>
> =================================================
> To set vacation, Out-Of-Office, or away messages,
> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
> 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
> fw-1-owner AT ts.checkpoint DOT com
> =================================================
>
> =================================================
> To set vacation, Out-Of-Office, or away messages,
> send an email to LISTSERV AT amadeus.us.checkpoint DOT com
> 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
> fw-1-owner AT ts.checkpoint DOT com
> =================================================
>
=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to LISTSERV AT amadeus.us.checkpoint DOT com
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
fw-1-owner AT ts.checkpoint DOT com
=================================================
|