[Nolug] A cron job that won't work, for some reason.

From: Ron Johnson <ron.l.johnson_at_cox.net>
Date: Tue, 01 Jun 2004 09:30:42 -0500
Message-Id: <1086100242.20590.25.camel@haggis.homelan>

Hi,

I've got this in my user's crontab, but it doesn't seem
to work.

#!/bin/sh

MAILTO=""
*/5 * * * * /usr/local/bin/run_fetchmail.sh # this works!

# this doesn't. I want to run it at 00:03:00 on the 1st
# day of each month. The "\" continuation characters were
# added by me just now, to make it easier to read in the
# email.
3 0 1 * * (mv ~/mailfilter.log \
     ~/mailfilter-`date --date '1 month ago' +"%Y-%m"`.log \
     && touch ~/mailfilter.log)

Running the command interactively works fine, so it
must be something simple that I'm missing.

Thanks

-- 
Ron Johnson <ron.l.johnson@cox.net>
___________________
Nolug mailing list
nolug@nolug.org
Received on 06/04/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST