On Tue, Apr 24, 2001 at 05:59:20PM -0500, Stephen E. Hargrove wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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. > > ls -al /www/htdocs/tvguide.inc > > - -rw-rw-rw- 1 root root 0 Apr 23 21:11 tvguide.inc > > so, it can't be a permission problem. > > anybody have any ideas as to why it works from the command line but not > from cron? i'm sure it's something simple that i'm overlooking.
You need to escape several characters for them to work in a crontab. I ususally just create a shell script and have that invoked by cron. That way you get the desired behavior. Mike