[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: OT: command line vs. cron



On Tue, Apr 24, 2001 at 05:59:20PM -0500, Stephen E. Hargrove wrote:
>
> i've run into a problem i've never seen before.  when i execute
> 
> /usr/bin/tvguide.pl > /www/htdocs/tvguide.inc
> 
> from the commandline, it works perfectly.  however, when i put
> 
> 0,30 * * * * /usr/bin/tvguide.pl > /www/htdocs/tvguide.inc
> 
> into root's crontab, tvguide.inc is created with nothing in it.

Try it without the redirection and see if cron mails you anything.
You might even do

0,30 * * * * echo 'starting' && /usr/bin/tvguide.pl && echo 'finished' 

so that you're sure to get some output.

Perhaps the script depends on the value of some environment variable
which is set in your shell but not in your crontab.

Rob

-- 
Jesuit priests are DATING CAREER DIPLOMATS!!



Reply to: