safiyet_80777
Apr 04, 2011Nimbostratus
scheduled task problem
Hi,
I want to form a scheduled task. I want to use perl script. For testing cron&crontab, I write a basic script which create a file and write something to the file.
root crontab -l
cron tab for root
1-59/30 * * * * /usr/bin/diskmonitor
*/1 * * * * perl /root/createfile
I suppose that my script should work every minute. I changed it to * * * * * perl /root/createfile for testing but for both cases my script can not run and data.txt was not created.
My script is:
!/usr/local/bin/perl
open (MYFILE, '>>data.txt');
print MYFILE "Bob\n";
close (MYFILE); (MYFILE);
I can not find the problem. I supposed that cron & crontab should be working in f5. Is it correct?
Thanks...