Gentoo Archives: gentoo-user

From: Grant <emailgrant@×××××.com>
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] crontab not executing
Date: Sun, 19 Jun 2011 23:04:32
Message-Id: BANLkTikkQ1ZNWTeuQ6sgjo9QSP56SHYz1Q@mail.gmail.com
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

Replies

Subject Author
Re: [gentoo-user] crontab not executing David W Noon <dwnoon@××××××××.com>
Re: [gentoo-user] crontab not executing Florian Philipp <lists@×××××××××××.net>
Re: [gentoo-user] crontab not executing Todd Goodman <tsg@×××××××××.net>