simple scripting question - directing output to a log file

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Scott H
Date:  
Subject: simple scripting question - directing output to a log file
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