[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
question about querying the router from scripts (unrelated to the upgrade)
- To: zmailer@nic.funet.fi
- Subject: question about querying the router from scripts (unrelated to the upgrade)
- From: Ambrose Li <acli@ada.dhs.org>
- Date: Tue, 10 Jun 2003 11:50:52 -0400
- Mail-Followup-To: Ambrose Li <acli@ada.dhs.org>, zmailer@nic.funet.fi
- Original-Recipient: rfc822;zmailer-log@nic.funet.fi
- Reply-To: Ambrose Li <acli@ada.dhs.org>
- Sender: zmailer-owner@nic.funet.fi
- User-Agent: Mutt/1.2.5i
Hi,
this is completely unrelated to my other questions.
When I run router -i (or sendmail -bt) from the command line, I
can enter commands such as "router nobody" and it will give me
an answer.
If I write a script, and then run it from a terminal, or even
from a batch(1) job, the router still gives me an answer.
However, if I run the script from a daemon (e.g., use it in a
"fingerd" script, or in a program referred to in an alias in the
aliases file), it gives me no answer; the router process seems
to just exit after printing the ZMailer version number.
If I allocate a pty in the daemon, then router will again give
me an answer (iirc), but that seems a lot of work (to set up
the pty device).
What is the correct way to query the router from a daemon?
Obviously there is a correct way since the smtpserver does it
(when configured to to do).
Thanks in advance, and
Best regards,
--
Ambrose LI Cheuk-Wing <a.c.li@ieee.org>
http://ada.dhs.org/~acli/
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi