crontab + python to change desktop every day.
-
Test the generation of the
poem.pngby running poem_desktop.py. There should be apoem.pnggenerated in the folder. -
Set crontab to generate a new
poem.pngevery day.- Set poem_desktop.sh to executable with
chmod +x poem_desktop.sh - Open crontab editor
env EDITOR=vim crontab -e. Insert at the end of the file0 0 * * * path_to_poem_desktop.sh - Use
crontab -lto view the current job,mailto check messages andcrontab -rto remove the current job.
- Set poem_desktop.sh to executable with