I am using crontab to open an image at every minute using a shell script. My script is working if I run it manually. But it is not executing in crontab. I have another script running well in crontab but not this one. Can anyone tell me what I am doing wrong?
My crontab line:
* * * * * /home/pi/Desktop/shellscript
My shell script:
#!bin/sh -x PATH=/bin:/sbin:/usr/bin:usr/sbin /bin/sh /etc/pofile export display=0.0 /usr/bin/eog -f /home/pi/Desktop/picture.jpg sleep 100 killall eog