Quantcast
Channel: How to run a cron job that relies on .Xauthority? - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2

Answer by Ale for How to run a cron job that relies on .Xauthority?

$
0
0

Assuming your user is logged in with an X session, and is the first session, it will get the display number 0, otherwise try to find out the display number the user is running. Try to put this in the user's crontab

*/5 * * * * DISPLAY=:0 /usr/bin/scrot

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>