CRON JOB QUESTION

Gregory Boyce gboyce at badbelly.com
Tue Aug 19 13:25:33 EDT 2003


On Tue, 2003-08-19 at 17:38, Eric Schwartz wrote:
> HELLO ALL,
> 	I have a slight problem I hope you guys can help.  I have a scheduled
> cron job to run a perl script that I have written.  It runs the
> scheduled perl script at the right time, but the perl script is supposed
> to output a file when it is run, and when I run the script with cron, no
> file is output, but if i run the script by itself then it outputs the
> file.  Any help would be appreciated, if you guys want to see any bits
> from the perl script or cron, or have any questions please let me konw. 
> Thanks again you guys are always a great help.

When you specified the output file, did you use an absolute or relative
path?  Alternately, do you call any binaries from your perl script by a
relative path?  One common problem I've seen is that people make
assumptions on what the current working directory or the PATH statements
are for cron.

Try /home/yourname/filename instead of filename for example.

-- 
Gregory Boyce <gboyce at badbelly.com>




More information about the Discuss mailing list