/etc/cron.daily/sa-update failure?

Glenn Steen glenn.steen at gmail.com
Tue May 9 09:14:56 IST 2006


On 09/05/06, Marcel Blenkers <marcel-ml at irc-addicts.de> wrote:
> Hi there,
>
> [...]
>
> > man sa-update
> > should contain the details... IIRC returning 1 means there was no
> > update to perform, while 0 means there was one and that it worked
> > OK... 4 is the "bad" one:).
> >
>
> thanks..
>
> but isnt it a bit strange, that my system stated that there was an error..
> :(
>
> this could mean everynight a failure-mail.. :(
>
> or should i delete the script, and handle sa-update by hand..or enter an
> entry in cron by hand?
>
> Marcel

If the script is run "bare", it'll return a non-zero value.... and
that will be reported (every night) by cron, yes. Perhaps not that
good:-).
Wrap it in a scriptlet and run that instead... Or whatever...
Something silly like

#!/bin/sh
/path/to/script params
case $? in
  0|1) ;;
  *) return <whatever> ;;
esac
# EoS
should do:-)

Cheers
--
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list