Quantcast
Channel: How to run a cron job that relies on .Xauthority? - Ask Ubuntu
Browsing latest articles
Browse All 2 View Live

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

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...

View Article


How to run a cron job that relies on .Xauthority?

I want to take a screenshot every five minutes with 'scrot'. To do this over a SSH connection, I can either run ssh -X user@server while true; do scrot -z; sleep 300; done OR (after manually check of...

View Article

Browsing latest articles
Browse All 2 View Live


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