<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2>Try using a fully qualified path to the script & 
command i.e. /usr/local/perl /user/home/jim.pl   </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2>A lot of times the path is not defined when the script 
runs.. it can not find the application nor the script..</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2>Your logon path may have the full path.. the systems shell 
may not ( this has bitten me a time or three ) </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2>Hope this helps</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=574411712-19042005><FONT face=Arial 
color=#0000ff size=2>Jim </FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Dominick Diorio 
[mailto:dominick.diorio@cgi.com] <BR><B>Sent:</B> Monday, April 18, 2005 6:10 
PM<BR><B>To:</B> rhn-users@redhat.com<BR><B>Cc:</B> 
dominick.diorio@cgi.com<BR><B>Subject:</B> [rhn-users] cron job 
fails<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>Hi ,</FONT></DIV>
<DIV><FONT face=Arial size=2>I am  trying to schedule this perl script with 
the cron scheduler but it will not run when it is scheduled.</FONT></DIV>
<DIV><FONT face=Arial size=2>If i run it with the at command the scripts runs 
fine (ftp file to dir , decrypts it and ftp it to dest).</FONT></DIV>
<DIV><FONT face=Arial size=2>When running thru  the cron scheduler I get 
pgp decryption failed  return code -1 and the messaage</FONT></DIV>
<DIV><FONT face=Arial size=2>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</FONT></DIV>
<DIV><FONT face=Arial size=2>working dir) .</FONT></DIV>
<DIV><FONT face=Arial size=2>If i look in the home dir the file is there. I am 
new at this . What am i missing??</FONT></DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2>For your help</FONT></DIV>
<DIV><FONT face=Arial size=2>Dominick</FONT></DIV></BODY></HTML>