[rhn-users] cron job fails
Sterling, James A
james.a.sterling at boeing.com
Tue Apr 19 12:21:04 UTC 2005
Try using a fully qualified path to the script & command i.e.
/usr/local/perl /user/home/jim.pl
A lot of times the path is not defined when the script runs.. it can not
find the application nor the script..
Your logon path may have the full path.. the systems shell may not (
this has bitten me a time or three )
Hope this helps
Jim
_____
From: Dominick Diorio [mailto:dominick.diorio at cgi.com]
Sent: Monday, April 18, 2005 6:10 PM
To: rhn-users at redhat.com
Cc: dominick.diorio at cgi.com
Subject: [rhn-users] cron job fails
Hi ,
I am trying to schedule this perl script with the cron scheduler but it
will not run when it is scheduled.
If i run it with the at command the scripts runs fine (ftp file to dir ,
decrypts it and ftp it to dest).
When running thru the cron scheduler I get pgp decryption failed
return code -1 and the messaage
Can't exec "pgp": No such file or directory at (user/homedir/). The
first part of the script worked (file is ftp into the users
working dir) .
If i look in the home dir the file is there. I am new at this . What am
i missing??
Thanks
For your help
Dominick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhn-users/attachments/20050419/87354d4c/attachment.htm>
More information about the rhn-users
mailing list