I have an .sh file located at '/home/pi/startup.sh' which I want to have running soon after bootup.
I have my crontab
with the following information.
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
0 0 * * * root reboot
@reboot ( /bin/sleep 30; /home/pi/startup.sh > /home/pi/cronjoblog 2>&1)
#
And the .sh is
sudo mount -t cifs -o guest //◘◘◘.◘◘◘.◘◘◘.◘/Public /home/pi/wdmycloud
#
sudo mount -t cifs -o guest //◘◘◘.◘◘◘.◘◘◘.◘/Jared /home/pi/Jared
#
sleep 10
feh -Y -x -q -D 5 -B black -F -Z -z -r /home/pi/wdmycloud/SkyNetPhotos/
What am I doing wrong? The script, should start a picture slide show using picture from the drives. But nothing happened, even hours of letting it sit.
What am I doing wrong?
Nobody knows because you're not telling us what the problem is. What does not work as expected?