With all the help from this group I now have Crontab working, but have a few more detailed questions.
1. is there any limit to how many individual Crontabs can be entered at once?
Here is a 2 line example
Code:
30 8 * * * sh vida
30 9 * * * sh vidb
I would like to do 4 different crontabs a day for 5 days 20 Lines total
2. If those 20 lines are entered and then the Rpi is shut down overnight will all the data be retained. Or would it be required that the next 16 would have to be reentered after a reboot the following morning.
I have found that if i use a script as below that the FireFox line will open without any problem, apparently because the OMXplayer closes at the end of the video. However if the Firefox is run before the OMXplayer then the the FireFox must be shutdown before the OMXplayer can start.
Code:
#!/bin/bash
export DISPLAY=:0 && /usr/bin/omxplayer -o hdmi '/home/pi/Videos/Tue Compact.mp4'
echo $(date) >> /home/pi/ek.log
firefox
3. Is there a way to send a shutdown from Crontab? Ctrl+C works in terminal.Or is there a workaround?
4. I have tried to get the email sent to my address at home. I added the following as the first line below the shebang in my script.
____ MAILTO=xyz@bellsouth.net
But I did not get any email.
Otherwise the script would be the same as in the second code box without the firefox
Thanks!