I tried to start R script from crontab on ubuntu 22.04.4 LTS but script didnt start
my code (edited by nano crontab -e
)
gives
50 9 * * * Rscript 1.r
crontab edited without nano crontab -e
gives
no crontab for root
crontab -l
also gives no crontab for root
How can I solve this?
nano crontab -e
is creatint a [text] file calledcrontab
, with the-e
option ofnano
(" -e, --emptyline Do not use the line below the title bar, leaving it entirely blank."). Modify you cronjobs withcrontab -e
like in this tutorial : linuxhandbook.com/crontab . Also, make sure to type your script right,1.r
is not the same as1.R
. You might want to check if you have "execute" permission on that file, but I am not so sure if it is required.