creating a log file



i have a script that just simply runs a backup using tar...


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?

.



Relevant Pages