1 |
One of my systems has a crontab like this to clean up and consolidate |
2 |
the output of the video monitoring app "motion": |
3 |
|
4 |
# crontab -l |
5 |
# DO NOT EDIT THIS FILE - edit the master and reinstall. |
6 |
# (/home/grant/cron.root.txt installed on Sat Sep 25 10:42:18 2010) |
7 |
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $) |
8 |
50 23 * * * /bin/rm /home/motion/$(date -d 'yesterday' +%Y%m%d)*.jpg |
9 |
55 23 * * * /bin/rm /home/motion/$(date -d 'yesterday' +%Y%m%d)*.avi |
10 |
59 23 * * * /usr/bin/mencoder /home/motion/$(date +%Y%m%d)*.avi -noidx |
11 |
-o /home/motion/full-$(date +%Y%m%d).avi -ovc copy -oac copy |
12 |
|
13 |
If I execute each command manually, it works great, but nothing |
14 |
happens otherwise. Can someone tell me why this crontab doesn't seem |
15 |
to be executing? |
16 |
|
17 |
- Grant |