I seem to be having some issues with crontab lately and since I don't know much (or really anything) about it I was hoping you all could give me some pointers and help me get this pi running correctly!
OS: Raspbian (9 September release)
(pup.sh is my shell script that I have saved as root to run my raspivid command and is saved in /home/pi/pup.sh)
I created the pup.sh and the crontab as root (sudo bash right? still new to all of this)
I have set up the raspberry pi camera and am running it with raspivid off a tutorial that I followed (can't link it here since I can't access the site at work). The raspivid is working great and is streaming the video to my ustream account just like it is supposed to. I have set up the raspivid as a way to monitor our new puppy while at work. I don't want to leave the camera running all the time so I was trying to get it working with crontab so that it will start and stop when I want it to. I tried using killall in a previous attempt with crontab to stop the raspivid at the appropriate time and was having issues when doing that. This time I've decided to just reboot when I want the raspivid to stop. Here's the code that I'm using in root crontab:
Code: Select all
00 0 * * * /sbin/shutdown -r now
00 7 * * 1-5 screen -d -m /home/pi/pup.sh
00 11 * * 1-5 /sbin/shutdown -r now
00 12 * * 1-5 screen -d -m /home/pi/pup.sh
00 17 * * 1-5 /sbin/shutdown -r nowCode: Select all
/usr/bin/screen -dmS /home/pi/pup.sh- Tyler