I have a cron that is supposed to run every minute however it will not run. I have checked if the daemon is running and it confirms it is. I have checked for logs but there was no log file created so I so checked rsyslogd and made sure crond will log events, however the log doesn't even get created.
My cron is the following:
*/1 * * * * export DISPLAY=:0.0 */1 * * * * /usr/bin/xdotool mousemove 500 500
Does anyone have any suggestions as to why cron won't run?
The crons don't run the way you want them to because each of them is scheduled as a separate process. Thus the
DISPLAY variable set in the first job is not shared with the second cron job.
I think you want to combine both of them into one command.
&& to combine them togather
* * * * * export DISPLAY=:0.0 && /usr/bin/xdotool mousemove 500 500
As @RDub has already pointed,
*/1 is redundant.