Discussion:
Crontab on Nokia
(too old to reply)
Dave
2003-11-11 16:45:07 UTC
Permalink
Ok I have got an IP330 running 3.5.1-FCS3 with CheckPoint FP3
installed. I edit cron to swith the log files with "fw logswitch".
The command does not work when I cron it.
00 0 * * * /opt/CPfw1-50-03/bin/fw logswitch 2>&1

I have tried using root as user and/or admin with the same results. I
have tried also creating a simple script and croning that,, and it
does work.

#!/bin/sh
FWDIR=/opt/CPfw1-50-03
$FWDIR/bin/fw logswitch

There are no errors I can find anywhere. I see a line in the
/var/log/messages for the script. The script and the just the command
work fine outside of crontab. Also crontab -l shows up correctly.

Anyone have any ideas or suggestions.

Dave
Dave
2003-11-12 14:15:57 UTC
Permalink
In the script you create you need to define you environment varibles
with " . /var/etc/pm_profile "

Place it first in your script.
Post by Dave
Ok I have got an IP330 running 3.5.1-FCS3 with CheckPoint FP3
installed. I edit cron to swith the log files with "fw logswitch".
The command does not work when I cron it.
00 0 * * * /opt/CPfw1-50-03/bin/fw logswitch 2>&1
I have tried using root as user and/or admin with the same results. I
have tried also creating a simple script and croning that,, and it
does work.
#!/bin/sh
FWDIR=/opt/CPfw1-50-03
$FWDIR/bin/fw logswitch
There are no errors I can find anywhere. I see a line in the
/var/log/messages for the script. The script and the just the command
work fine outside of crontab. Also crontab -l shows up correctly.
Anyone have any ideas or suggestions.
Dave
Loading...