Date: Sun, 7 Sep 2003 21:50:44 -0500 From: "Kevin Kinsey, DaleCo, S.P." <kdk@daleco.biz> To: "Jason Lieurance" <jason@vipersystems.biz> Cc: questions@freebsd.org Subject: Re: Making a certain cron job Message-ID: <00d601c375b4$00f95850$1741d5cc@nitanjared> References: <13696.205.240.37.184.1062986048.squirrel@www.vipersystems.biz> <20030907212701.K1087@grond.sourballs.org> <14243.205.240.37.184.1062989058.squirrel@www.vipersystems.biz>
next in thread | previous in thread | raw e-mail | index | archive | help
> David Fleck said:
>
> >
> > Date=`date +"%Y-%m-%d"`
> >
> > cat /var/log/http/${Date}-error_log | mail -s log
web@ourdomain.com
>
From: "Jason Lieurance" <jason@vipersystems.biz>
To: <david.fleck@mchsi.com>
Cc: <freebsd-questions@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00d601c375b4$00f95850$1741d5cc>
