Re: cron problem
Lawrence Chim <email@example.com> 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 <root@ppp-1-145> 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)>]
> # 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.
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com