I have a raspberry connected to a camera and am using it to make a timelapse video with cronjob. I got it working and then tweaked some other things in crontab and now I can't get any output from the timelapse script. I am running crontab from sudo as it is the easy road to prevent permissions problems with the camera and as I am the only user. Reloading and restarting cron does not help. What am I doing wrong?
Here is my " sudo crontab -e" entry:
Code: Select all
* 19,20,21,22,23,24 * * * /home/pi/camera.sh >> /home/pi/logs/timelapse.txt 2>&1Code: Select all
Jun 18 04:34:01 picamera CRON[708]: (root) CMD (/home/pi/camera.sh >> /home/pi/ochtendlog.log 2>&1)
Jun 18 04:35:01 picamera CRON[728]: (root) CMD (/home/pi/camera.sh >> /home/pi/ochtendlog.log 2>&1)
Jun 18 04:36:02 picamera CRON[747]: (root) CMD (/home/pi/camera.sh >> /home/pi/ochtendlog.log 2>&1)
Jun 18 04:37:01 picamera CRON[766]: (root) CMD (/home/pi/camera.sh >> /home/pi/ochtendlog.log 2>&1)
Jun 18 04:38:01 picamera CRON[786]: (root) CMD (/home/pi/camera.sh >> /home/pi/ochtendlog.log 2>&1)
Code: Select all
● cron.service - Regular background program processing daemon
Loaded: loaded (/lib/systemd/system/cron.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2018-06-24 21:24:58 CEST; 11min ago
Docs: man:cron(8)
Main PID: 1440 (cron)
CGroup: /system.slice/cron.service
└─1440 /usr/sbin/cron -f
Jun 24 21:24:58 picamera systemd[1]: Started Regular background program processing daemon.
Jun 24 21:24:58 picamera cron[1440]: (CRON) INFO (pidfile fd = 3)
Jun 24 21:24:58 picamera cron[1440]: (CRON) INFO (Skipping @reboot jobs -- not system startup)