I have a security camera system on a pi that works great. I am trying to automate it a bit with cron and having some issues.
The system uses Motion and has worked very well. My issue is with two things related to cron... I think.
The following three commands work just fine in terminal and do exactly what I want them to do (after I remove the scheduling bits). However, once I add the second two of them to cron, they do not work (the one I use to start motion LD_PRELOAD works fine).
I checked the status of cron, and I think it is asking all commands to execute, but I don't know how to determine why they are second two are not working.
The intention of the third command is just to monitor the CPU temperature and write it to a text file.
Code: Select all
0 8 * * * LD_PRELOAD=/usr/lib/uv4l/uv4lext/armv6l/libuv4lext.so motion -c /etc/motion/motion.conf 15 15 * * * /etc/init.d/motion stop * 1 * * * /opt/vc/bin/vcgencmd measure_temp &>> /home/pi/SecurityCam/temperature.txt | date &>> /home/pi/SecurityCam/temperature.txt