Python: check battery stat and run through cron

/ Published in: Python
Save to your folder(s)

for Cron:
# run
$ crontab -e
# then add this
*/1 * * * * export DISPLAY=:0.0 && /home/username/path/to/ > /dev/null

# then save.
# This cron job will run every minute


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.