simple scripting question - directing output to a log file

Scott H plug-discuss@lists.plug.phoenix.az.us
Tue, 28 Jan 2003 08:08:50 -0800 (PST)


I have a little script that I want to use to
mirror one partition to another, using mirrordir
via a cron job.  I want the script to log it's
output to a log file, like .../messages, or a
custom one, like .../mirrordir.log.  How do I get
it to do this, either in the script itself, or by
telling cron to put output there?  Here sort of
what the script looks like:

#!/bin/sh
date
echo "Mirrordir says:"
mirrordir --exclude /mnt / /mnt/hda4
date
echo "Done."

TIAFAH!

Scott


.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com