Matthew.A
03-23-2001, 09:23 AM
Ok - I'm confused :( I', trying to setup a for a perl script to be run once a night and send the output to me via e-mail.
I've setup a small cronjob file:
=========================================
# Mail results to this address
MAILTO="Matthew@dps.uk.com"
# Execute the "test.pl" script at 3:15 (15 3) AM every day.
15 03 * * * perl /home/sites/site8/web/emradmin/nightly/test.pl
=========================================
And logged in as the site admin and typed Crontab cronjob - it all gets setup correctly and runs as expected - however my results are always the same : I get an e-mail with "Can't open perl script "/home/sites/site8/web/emradmin/nightly/test.pl": No such file or directory"
But if I type that in from a shell it works correctly.
Now I've read elsewhere that you need to use Cron to run a perl script?
What's the difference between crontab and cron? Or what am I doing wrong :(
TIA
I've setup a small cronjob file:
=========================================
# Mail results to this address
MAILTO="Matthew@dps.uk.com"
# Execute the "test.pl" script at 3:15 (15 3) AM every day.
15 03 * * * perl /home/sites/site8/web/emradmin/nightly/test.pl
=========================================
And logged in as the site admin and typed Crontab cronjob - it all gets setup correctly and runs as expected - however my results are always the same : I get an e-mail with "Can't open perl script "/home/sites/site8/web/emradmin/nightly/test.pl": No such file or directory"
But if I type that in from a shell it works correctly.
Now I've read elsewhere that you need to use Cron to run a perl script?
What's the difference between crontab and cron? Or what am I doing wrong :(
TIA
