I am running OpenSUSE 15.4 and I am trying to set up a CRON job using crontab -e.
Inside my CRON tab I have the following:
*/1 * * * * /usr/bin/Rscript /run/media/matt/A34E-C6B8/folder/myRScript.R
So I give it the full path the where the RScript program can be found and then the location of the RScript I want to execute.
I check the system log files by running sudo tail -f /var/log/messages and I find this:
2023-05-04T16:41:03.034501+02:00 localhost systemd[1]: Started Time & Date Service.
2023-05-04T16:41:09.628633+02:00 localhost CRON[6807]: (matt) CMDEND (/usr/bin/Rscript /run/media/matt/A34E-C6B8/folder/myRScript.R)
2023-05-04T16:41:09.630489+02:00 localhost CRON[6807]: pam_unix(crond:session): session closed for user matt
2023-05-04T16:41:09.631608+02:00 localhost systemd[1]: session-c1005.scope: Deactivated successfully.
So, it looks like the cronjob is being run but being deactivated...