Firewall-1

[FW-1] cronjob problem on secureplatform

Subject: [FW-1] cronjob problem on secureplatform
From: Shiazad Ahmed <shiazad.ahmed AT TRINITYSECURITY DOT COM>
To: FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM
Date: Mon, 23 Aug 2004 15:11:59 +0100
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
=================================================

<Prev in Thread] Current Thread [Next in Thread>