public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: David W Noon <dwnoon@ntlworld.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] crontab not executing
Date: Mon, 20 Jun 2011 00:45:47 +0100	[thread overview]
Message-ID: <20110620004547.7ea9201c@karnak.local> (raw)
In-Reply-To: <BANLkTikkQ1ZNWTeuQ6sgjo9QSP56SHYz1Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2605 bytes --]

On Sun, 19 Jun 2011 15:37:42 -0700, Grant wrote about [gentoo-user]
crontab not executing:

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

For starters, you don't have any environment variables assigned at the
top of your crontab.  Here is mine:

# Establish environment variables.
JAVA_HOME='/etc/java-config-2/current-system-vm'
PATH='/home/dwn/bin:/usr/local/bin:/bin:/usr/bin:/etc/java-config-2/current-system-vm/bin:/etc/java-config-2/current-system-vm/jre/bin:/opt/bin'
TMPDIR='/tmp'
HOME='/home/dwn'
SHELL='/bin/zsh'
LOGNAME='dwn'
LC_ALL='en_GB.UTF-8'
http_proxy='http://localhost:8080'
ftp_proxy='http://localhost:8080'
RSYNC_PROXY='localhost:8080'
ZFTP_PREFS='P'
PGHOST=''
PGPORT=''

# Set our priority level.
!nice(4)

# Clean up old backup files.
%daily 38 20 find "$HOME/" \( -name \*~ -o -iname \*.bak -o -iname \*.bak\? \) -print -delete

# Clean out the work directory for Lazarus.
%daily 18 05 find "$HOME/Lazarus_projects/tmp/" -mindepth 1 -delete

# Download the development trunk of Free Pascal compiler.
%daily 13 07 fpc_download.zsh

# Purge old mailing list messages from Free Pascal.
%daily 37 04 mail_purge.py '6d5c5c5a8aa90d8a'

# Clear the cache for epiphany.
%daily 27 06 cd "$HOME/.gnome2/epiphany/mozilla/epiphany" && rm -rf
compreg.dat pluginreg.dat Cache .parentlock

# Clean out old GNOME sessions.
#%hourly 13 find "$HOME/.config/gnome-session/saved-session/" -mindepth
1 -name \*.desktop -delete

# Clean out the cache subdirectories under $HOME.
%daily 28 06 cache_clean.zsh

# Check Portage for orphans.
#%daily 32 06 portage_orphans.zsh
-- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
dwnoon@ntlworld.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

  reply	other threads:[~2011-06-20  0:06 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-19 22:37 [gentoo-user] crontab not executing Grant
2011-06-19 23:45 ` David W Noon [this message]
2011-06-20  5:18 ` Florian Philipp
2011-06-20  6:30   ` Adam Carter
2011-06-20  8:21     ` Neil Bothwick
2011-06-20  9:07       ` Florian Philipp
2011-06-20 10:39       ` Adam Carter
2011-06-20 11:22         ` Albert Hopkins
2011-06-20 11:30         ` Neil Bothwick
2011-06-20 11:53         ` Florian Philipp
2011-06-20 13:52         ` Willie Wong
2011-06-20 12:52 ` Todd Goodman
     [not found] ` <1426203.rtguKxDEjI@nazgul>
2011-06-20 14:47   ` Grant
2011-06-20 14:57     ` Peter Humphrey
2011-06-22 14:40       ` Grant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110620004547.7ea9201c@karnak.local \
    --to=dwnoon@ntlworld.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox