Hi, I'm trying to run my first cron job, probably it's missing something.
I created a perl script just to test, it's called "teste"
[code=perl]
!/usr/bin/perl
open(DATA,">>/home/joao/files/output");
@Now = localtime(time) ;
print DATA "@Now\n";
exit ;
[/code]
I created the file "teste.cron " with the cron job. it's only a line with:
* * * * * /home/joao/files/teste
I uploaded the cron job with "crontab teste.cron"
Shouldn't this be writing the date and time every minute in the file "output"?
When I run my script manually it writes correctly in the file "output";
If I type "crontab -l" I can see my cron job loaded;
can somebody give me an hand?
thanks,
João
I created a perl script just to test, it's called "teste"
[code=perl]
!/usr/bin/perl
open(DATA,">>/home/joao/files/output");
@Now = localtime(time) ;
print DATA "@Now\n";
exit ;
[/code]
I created the file "teste.cron " with the cron job. it's only a line with:
* * * * * /home/joao/files/teste
I uploaded the cron job with "crontab teste.cron"
Shouldn't this be writing the date and time every minute in the file "output"?
When I run my script manually it writes correctly in the file "output";
If I type "crontab -l" I can see my cron job loaded;
can somebody give me an hand?
thanks,
João
Comment