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

monkfan has asked for the wisdom of the Perl Monks concerning the following question:

Hi experts,
I was trying to run this simple script (cron.pl) with CRON
#!/usr/local/bin/perl -w use strict; system("echo test > testcron.txt"); #system("nohup perl later_other_code.pl&");
but it fail to be executed with my cron entries that look like this:
MAILTO=monkfan@gmail.com * * * * * /usr/local/bin/perl /home/monkfan/MyPerl/cron.pl
Meaning that 'testcron.txt' wasn't created at all at this directory: /home/monkfan/MyPerl/. Why is that?

Update:

Regards,
Edward