I build a cronjob to download a new picture from a source every ten minutes and set it as wallpaper using feh. The file is downloaded but the wallpaper doesn't change. Where is the problem?
crontab -e executes commands as the user so it should be as i would run the line - which works btw.
here is the script
#!/bin/sh #Filename file="space-"$(date +%x_%H:%M:%S) #save it wget http://rammb.cira.colostate.edu/ramsdis/online/images/latest_hi_res/himawari-8/full_disk_ahi_true_color.jpg -O /home/tim/Bilder/Wallpaper/$file -o /dev/null #set background feh --bg-max /home/tim/Bilder/Wallpaper/$file
crontab -e for the user which background should be changed (aka me)
*/10 * * * * /bin/sh /home/tim/Dokumente/Scripts/wallpaper.sh
In my syslog I found these lines
Jan 31 21:40:01 LinuxMint CRON: (tim) CMD (/bin/sh /home/tim/Dokumente/Scripts/wallpaper.sh) Jan 31 21:40:11 LinuxMint CRON: (CRON) info (No MTA installed, discarding output)