Take a look at the email generated by cron -- it will probably give you
the reason why that command failed. Run the "mail" command to see the
mail. If there is no mail for root, then there are chances that the mail
is in /var/admin/dead.letter as an email that could not be delivered to
the MTA.

Regards,
Pritish

>>> [EMAIL PROTECTED] 09/24/02 05:01AM >>>
I have written a simple script to release address from the VPN Pool NAT
on a
nokia box :-

#!/bin/sh
echo about to clear >> /var/log/ClearVPNLog
/opt/CPfw1-50-02/bin/fw tab -t fwx_ip_lookup_tab -t fwx_cntl_dyn_tab -s
 >>
/var/log/ClearVPNLog
echo cleared >> /var/log/ClearVPNLog
date >> /var/log/ClearVPNLog

When I run this from the command line it works as expected and I see
all the
addresses in the Pool released. However when I try and run it from
crontab
it runs all the commands except the fw one which is the useful one.

ashfw02[root]# more /var/etc/crontab
#  This file was AUTOMATICALLY GENERATED
#  Generated by cron_xlate on Mon Sep 16 13:45:42 2002
#
#  DO NOT EDIT
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
MAILTO=""
#
#minute hour    mnthday month   weekday user    command
#
5       *       *       *       *       root    /etc/hourly 2>&1
>>/var/log/hour
ly
30      0       *       *       7       root    /etc/weekly 2>&1
>>/var/log/week
ly
15      0       *       *       *       root    /etc/daily 2>&1
>>/var/log/daily
45      0       1       *       *       root    /etc/monthly 2>&1
>>/var/log/mon
thly
*    */4       *       *       *       root
/opt/CPfw1-50-02/bin/ClearVPN

I am not a Unix admin but have used these scripts before to check on
the
number of maiuls in the spool directory,

Help  !!!


thanks

Mark

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

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

Reply via email to