I have this single program that doesn't run from cron (RScript). I've tried running an sh script and calling it from that. Calling it by its full path and the likes. But it won't run. Running it directly via the console (from the same user as it's croned) works fine. What could cause this, or how can I get around it? My crontab has one line:
* * * * * sh /home/user/path/to/script/scriptFile.sh
the script file is:
/bin/Rscript /home/user/path/to/script/scriptFile.R
I've also tried having
cd /home/user/path/to/script/ && /bin/Rscript /home/user/path/to/script/scriptFile.R
As the crontab file
crontabdetail are needed?cronsends you a (local) email for every attempted run that results in some sort of output. You'll find them with themailormailxcommand (orless $MAILif you want the direct route)looog.err.log:)