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

From: Randy Flood <stock_investor_guy_at_yahoo.com>
Date: Sat, 5 Jun 2004 10:37:05 -0700 (PDT)
Message-ID: <20040605173705.98623.qmail@web40112.mail.yahoo.com>

The way I've allways solved these things was to put
the thing I wanted to run into a script. Then, I have
cron execute the script.

Wouldn't that simplify the syntax a whole bunch?

Wouldn't that make it really easy to maintain?

Randy

--- Ron Johnson <ron.l.johnson@cox.net> wrote:
> 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

=====
------------------------------------------------------
Randy Flood
Randy.Flood@RHCE2B.COM
http://www.rhce2b.com
------------------------------------------------------

        
                
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
___________________
Nolug mailing list
nolug@nolug.org
Received on 06/05/04

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