i'm not sure how else to describe it, so here's the script, permissions, and crontab
#!/bin/bash # Script to randomly set Background from files in a directory #hopefully set some of the environment variables properly... #/home/zandi/.profile # Directory Containing Pictures DIR="/home/zandi/Pictures/space" #DISPLAY=:0.0 #USER=zandi #USERNAME=zandi # Command to Select a random jpg file from directory # Delete the *.jpg to select any file but it may return a folder PIC=$(ls $DIR/*.jpg | shuf -n1) #set the wallpaper /usr/bin/gconftool -t string -s /desktop/gnome/background/picture_filename $PIC
-rwsr-xr-x 1 zandi zandi 519 2010-02-23 21:23 wallpaper.sh
* * * * * /home/zandi/wallpaper.sh >/tmp/cron.log 2&>1
stdout and stderr is getting piped to /tmp/cron.log, i just didn't show the file here because it's blank.
any ideas as to why this isn't working?