Hi guys, hi Eric,
probably you should use
. /opt/CPshrd-R65/tmp/.CPprofile.sh
or
source /opt/CPshrd-R65/tmp/.CPprofile.csh
depends on what shell you use.
And don't forget the environment, which is quite rudimentary
set when running from cron (e.g. PATH=/bin:/usr/bin)
Regards
Torsten
> -----Original Message-----
> From: Mailing list for discussion of Firewall-1
> [mailto:FW-1-MAILINGLIST AMADEUS.US.CHECKPOINT.COM]
On Behalf
> Of cisco4ng
> Sent: Thursday, October 18, 2007 1:31 PM
> To: FW-1-MAILINGLIST AMADEUS.US.CHECKPOINT.COM
> Subject: Re: [FW-1] Alert when state of ClusterXL
changes
>
>
> Hugo,
>
> Why don't you just tell him what the problem is?
>
> Erik, it is most likely that the problem you have is
the script you
> have does not have this line in it:
>
> sh /opt/CPshrd-R65/tmp/.CPprofile.sh (this is NGx R65)
>
> for more info, go to cd $CPDIR/tmp and you will find
> .CPprofile.sh and
> .CPprofile.csh. Depending on your script (csh or sh),
you will put in
> one of these lines and your script will work with
crontab.
>
> I ran into a similar issue and didn't know how to fix
it
> 'cause I am not
> a programmer. It took me about an hour to figure it
out.
>
> good luck to you.
>
> Hugo van der Kooij <hvdkooij VANDERKOOIJ.ORG> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Erik Gielow wrote:
> > Thanks too!!
> > I tried to do this making a script shell, and
running in a
> root crontab,
> > the script are working 100% when i run manualy,
the email
> with the warning
> > that the
> > clusterxl A are down and B up etc ...
> > but when i put the script in a crontab, i didnt
receve any
> email ... i
> > think, could be, the roots contrab are not allowed
to send
> email ??? i
> > really dont know ...
> > this is the answer to this problem! i ll try
latter!
>
> You propably rely on variables being set. But most of
the
> ones that are
> set when you login are not set when you run from
crontab.
>
> You will find details about which script needs to be
called from your
> script in the archives.
>
> Hugo.
>
> - --
> hvdkooij vanderkooij.org http://hugo.vanderkooij.
org/
> PGP/GPG? Use: http://hug
o.vanderkooij.org/0x58F19981.asc
>
> Bored? Click on http://spamornot.org/ and
rate those images.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
>
>
iD8DBQFHFwSDBvzDRVjxmYERAsG6AKCat+A9J51UzRLOwFL1A6QTM43+6ACf
Uf/N
> 5jwL52+nBeau3+iYupj26GU=
> =zzWg
> -----END PGP SIGNATURE-----
>
> =================================================
> To set vacation, Out-Of-Office, or away messages,
> send an email to LISTSERV amadeus.us.checkpoint.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 ts.checkpoint.com
> =================================================
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
protection around
> http://mail.yahoo.com
>
> =================================================
> To set vacation, Out-Of-Office, or away messages,
> send an email to LISTSERV amadeus.us.checkpoint.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 ts.checkpoint.com
> =================================================
>
=================================================
To set vacation, Out-Of-Office, or away messages,
send an email to LISTSERV amadeus.us.checkpoint.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 ts.checkpoint.com
=================================================
|