Actually maybe it should have been "echo $status". The point is to display
the exit status the command:
/bin/sh -c "/applic/ath/majordomo/wrapper resend -l psi -h callisto.pas.rochester.edu psi-outgoing"
If the exit status is 1 you get unknown mailer error 1.
If the exit status is 0 sendmail is happy.
echo $status should print out which it is.
If you can't get it a 0 out of it, then create a shell script, say resend2
or whatever with contents:
#!/bin/sh
/applic/ath/majordomo/wrapper resend -l psi -h callisto.pas.rochester.edu psi-outgoing
exit 0
and make the alias
psi: "|/whatever/resend2"
...temporarily to get the list going ?
-mike
> From: "Michael J. Corrigan" <corrigan@ucsd.edu>
> > Try (this takes sendmail out of the equation):
> >
> > cat sample_mesg | /bin/sh -c "/applic/ath/majordomo/wrapper resend -l psi -
h callisto.pas.rochester.edu psi-outgoing" ; echo $?
> >
> > where sample_mesg is something resend would want to see.
>
> when i include the "echo", i get "Newline in variable name."
> [i'm using tcsh, if that matters.]
>
> when i leave it off, the message is delivered correctly, all the
> headers are rewritten, and i am ecstatic. when i try to do the
> same thing by passing it through my list alias (which is:
>
> psi: "|/applic/ath/majordomo/wrapper resend -l psi -h callisto.pas.rochester.
edu psi-outgoing"
>
> ), it crashes with "unknown mailer error 1", and i almost put my fist
> through the screen.
>
> what the hell could be wrong here? "resend" works from the command line,
> so it must be compiled correctly. half a dozen people have told me my
> sendmail alias is correct. is there any possible way i could have sendmail
> 8.6.9 configured to refuse to forward to a program? what else could it
> possibly be?
>
> help me, please...
>
>
>
> --
> colin | precisely why all of the above should be so is not clear, but goes so
me
> roald | way to explaining why, on the Disc, the Gods are not so much worshipp
ed
> as blamed. (pratchett)
>
References:
|
|