Making a certain cron job

Kevin Kinsey, DaleCo, S.P. kdk at daleco.biz
Sun Sep 7 19:51:06 PDT 2003


> David Fleck said:
>
> >
> > Date=`date +"%Y-%m-%d"`
> >
> > cat /var/log/http/${Date}-error_log | mail -s log
web at ourdomain.com
>
From: "Jason Lieurance" <jason at vipersystems.biz>
To: <david.fleck at mchsi.com>
Cc: <freebsd-questions at freebsd.org>
Sent: Sunday, September 07, 2003 9:44 PM
Subject: Re: Making a certain cron job


> Hello,
>
> Thank you for the response. Does the date part
> (Date=`date +"%Y-%m-%d"`) go as part
> of the cron job? Thanks again.
>
> --
> Jason
>
 I'd say not.  Save the lines he wrote as
"somescript.sh" and put the following
command in your crontab at the desired
time:

/bin/sh /path/to/somescript.sh

Kevin Kinsey
DaleCo, S.P.



More information about the freebsd-questions mailing list