http://www.perlmonks.org?node_id=634650


in reply to Perl Script Not Working With Crontab

What do you mean with "it fails" exactly ?
If you get an error message mailed, this would be helpful.

A guess:
You could try replacing testcron.txt with /absolutepath/testcron.txt
(update) so system("echo test > testcron.txt");
gets system("echo test > /absolutepath/testcron.txt")

michael
  • Comment on Re: Perl Script Not Working With Crontab