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/script.py > /dev/null

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

URL: http://pantuts.com/2014/07/25/cron-job-python-script-check-battery-stat/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.