I have an 'R' script that I wish to run at 00:30 every day, that is, 12:30 AM everyday. The script itself is located in
which Rscript tells me that the exact path to binary
/usr/bin/Rscript. So I make the following crontab entry:
crontab -e 54 13 * * * /usr/bin/Rscript ~/Desktop/foldername/runme.r
Time right now is 13:52 of course. And I wait 5 minutes to see if a CSV file is created in my home folder. Since the R script runme.r has instructions to process some data and then create a CSV file in the home folder.
But no luck. At 13:54, no CSV file is created in my home folder. Please note that when I manually run this script (without using cron), it does create a CSV in my home folder. So I know there's nothing wrong with my script. So why is the cronjob not running as intended and what can I do to correct it or how do I check log files for additional sources of information?
EDIT: NEW OBSERVATION
If I change the line to
* * * * * /usr/bin/Rscript /home/username/Desktop/foldername/runme.r instead of specifying the exact time, it does create the right CSV file in the right location. So
* * * * * works and
54 13 * * * doesn't. Why?