My goal is to run my python script each day (besides Friday and Saturday) at 10:00 and terminate it by 18:00.
I added the following to the crontab but the second command isn't working.
0 10 * * 0,1,2,3,4 /home/pi/MotionDetector.py
0 18 * * 0,1,2,3,4 /home/pi/MotionDetector.py killall -9 MotionDetector.py
Using Linux 2.7.9
I tried this solution that worked Via the terminal but not in cron (when I typed the command in the terminal it closed the script right away but when I put it on the crontab it didn't do anything)
killallas an argument toMotionDetector.py?