Lawrence Chim <[EMAIL PROTECTED]> writes: > > [1 <text/plain; us-ascii (7bit)>] > Rick Macdonald wrote: > > > > Lawrence Chim wrote: > > > > > > I don't know why cron always send mail to root with the following > > > body. Any idea? > > > > > > Subject: Cron <[EMAIL PROTECTED]> run-parts /etc/cron.daily > > > X-Cron-Env: <SHELL=/bin/sh> > > > X-Cron-Env: > > > <PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin> > > > X-Cron-Env: <HOME=/root> > > > X-Cron-Env: <LOGNAME=root> > > > > > > getopt: illegal option -- o > > > > You might want to post the file "/etc/cron.daily" so we can see > > what the problem is. > > Here is the files in /etc/cron.daily. Sorry if it is too many. > > [11 smail <text/plain; us-ascii (7bit)>] > #!/bin/sh > # Run the Smail error checking script and rotate the logfiles. > # We have to rotate the logs as root as otherwise we can't fix the > # timestamps, and so we might as well add the checkerr script here > # too. > test -f /usr/sbin/smail || exit 0 > cd /tmp > su mail -c /usr/lib/smail/checkerr > > set -e > cd /var/log/smail > savelog -o root -g mail -m 644 -c 7 logfile paniclog >/dev/null ^^ this is the culprit, change the -o to -u. I think it has already been reported as a bug against smail. Also look in /var/log/smail and remove the droppings.
Andy. -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]