Re: creating a log file
- From: "patrick" <p.at.r.c.k@xxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 13:58:19 -0800
In news:1170276379.504602.164760@xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
samuel.stroud@xxxxxxxxx <samuel.stroud@xxxxxxxxx> wrote:
I want to be able to create a logfile from the output when the script
runs nightly in the cron...
So script runs in cron at night
it tars up /dir/dir to /dir
i get an email saying its done
<here I want to create a logfile of everything that was tar'd into /
dir/dir>
How is this done? Is there a variable I need to insert into the
script?
Use the verbose option to tar (tar cvf ...) and cron will email you the log,
otherwise redirect the verbose output of the tar command to whatever logfile
you can write to.
.
- References:
- creating a log file
- From: samuel . stroud
- creating a log file
- Prev by Date: Re: Set "ulimit -c"
- Next by Date: Couldn't find package alien in ubuntu installation.
- Previous by thread: creating a log file
- Next by thread: Couldn't find package alien in ubuntu installation.
- Index(es):
Relevant Pages
|