Firewall-1

Re: [FW-1] cronjob problem on secureplatform

Subject: Re: [FW-1] cronjob problem on secureplatform
From: Kenny Jansson <kenson AT SENTOR DOT SE>
To: FW-1-MAILINGLIST AT AMADEUS.US.CHECKPOINT DOT COM
Date: Wed, 25 Aug 2004 17:41:20 +0200
On Mon, Aug 23, 2004 at 03:11:59PM +0100, Shiazad Ahmed wrote:
> 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/

Hi,

when playing around with cp-commands from within cron it usually helps to
source the .CPProfile.sh.. it sets all kinds of useful variables.

Do like so in your bash script:

. /opt/CPshrd-R55/tmp/.CPprofile.sh

(this is the path that works on NG-AI R55)

Regards,

/Kenny
--
Kenny Jansson                               kenson AT sentor DOT se
Sentor AB, Orphei Drängars plats 1,753 11 Uppsala, Sweden
phn: +46 (0) 18 65 30 00     |     gsm: +46 (0) 70 757 30 01

=================================================
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>