You could modify the /etc/fetchmail template to check the return code of the
fetchmail program, then pass/suppress the output accordingly. Something like
this (untested code, presented for ideas only):
TMP="/tmp/startmail.$$"
/usr/bin/fetchmail ... <<EOF
... blah blah blah ...
EOF >"$TMP" 2>&1 || cat "$TMP"
[ -f "$TMP" ] && rm -f "$TMP"
J. Scott Smith
The Reynolds and Reynolds Company
800 Germantown St - Dayton, Ohio 45407
voice: 937-485-2956
fax: 937-485-5644
mailto:[EMAIL PROTECTED]
http://www.reyrey.com
> -----Original Message-----
> From: Philip Stinson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 06, 2001 11:07 AM
> To: Devinfo@Lists. E-Smith. Org
> Subject: [e-smith-devinfo] 'Cron' Fetchmail dots
>
>
> I remember seeing on the list that you can turn off the dots
> that cron puts
> out by redirecting to null. However I would loose any error
> messages that
> may occur. Is there a way to stop the dots but keep the
> errors (if any) ?
>
> Thanks,
>
> Philip
>
>
> --
> This list is archived
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>