How about if, instead, I change the script to exit error codes? The *real* script I want used it more complicated.. On 25-Aug-98 Michael Salmon wrote:
In general it is not a good idea to do what you have done as sendmail expects all programs that it invokes to exit with one of the codes in /usr/include/sysexits.h and your script is nearly guaranteed to not do that. If something goes wrong you will send a lot of "unknown mailer error" error messages. A better approach is:
|"/home/vote/bin/test.sh || exit 75"
which will cause sendmail to requeue your mail (75 works for most systems but check sysexits first to be sure).
---------------------------------- <A HREF="http://benham.net/index.html"><A HREF="http://benham.net/index.html</A">http://benham.net/index.html</A</A>> -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d+(-) s:+ a29 C++$ UL++>++++ P+++$ L++>++++ E? W+++$ N+(-) o? K- w+++$(--) O M-- V- PS-- PE++ Y++ PGP++ t+ 5 X R+ !tv b++++ DI+++ D++ G++>G+++ e h+ r* y+ ------END GEEK CODE BLOCK------ ---------------------------------- - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e