crontab help

Rodney K pepe65 at hawaii.rr.com
Sat Oct 27 22:19:49 PDT 2001


Hi,

I need help getting cron to output error messages to a file instead of
mailing it to me.  Here is what I have in my cron file:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO= cmd >> cronlog 2>&1
HOME=/home/happy

# Hourly runs
07 * * * * /home/happy/scripts/bkuphome.sh
#Daily runs
01 0 * * * /home/happy/scripts/bkupusr.sh

The scripts bkuphome & bkupusr copies the home and usr directories to a
windows partition so for every file that gets copied, cron displays an error
message. I followed a guide "Newbie: Intro to cron" and put " cmd >>
cronlog 2>&1 " on the MAILTO line, but I still get email with the errors and
no logfile. Help!

Thanks,
Rodney



More information about the LUAU mailing list