cron job to execute r script not working

前端 未结 1 970
广开言路
广开言路 2021-01-15 17:30

I am new to cron. I want to execute r script on regular basis using cron. I just added the job to crontab to check if it is working. But unfortunately, nothing is working. I

相关标签:
1条回答
  • 2021-01-15 18:18

    Change the permissions of the file /path/to/script/test.R and make sure, it has execution permissions to the user you are trying to submit the cronjob.

    chmod 777 /path/to/script/test.R

    Alternately, you can also try below mentioned ways also

    Create a shell file (i.e., sample.sh) and place the following code in it. Rscript /path/to/script/test.R , and schedule the cron job as mentioned below.

    5 * * * * /path/to/script/sample.sh

    0 讨论(0)
提交回复
热议问题