On Sat, Dec 25, 1999 at 10:14:58AM -0500, Russell Nelson wrote:
> Stefan Paletta writes:
> > [EMAIL PROTECTED] wrote/schrieb/scribsit:
> > > On Sat, Dec 25, 1999 at 11:21:59AM -0700, Irwan Hadi wrote:
> > > > For example, Welcome to xxx, mm/dd/yy,hh:mm:ss , this mailserver is using
> > > > QMAIL version 1.03
> >
> > > The date-part is not possible, by the way.
> >
> > Of course it is - just use Unix!
> >
> > # cd /var/qmail/control
> > # mkfifo smtpgreeting
> > # while :; do date > smtpgreeting ; done &
>
> I'd suggest this instead:
>
> while :; do date > smtpgreeting.new && mv smtpgreeting smtpgreeting.net; sleep 1 ;
>done &
This is the first _working_ suggestion I see.
Stefan: your solution is probably quite portable, but not reliable: it can
cause hanging qmail-smtpd's when 2 of 'm try to read the FIFO at the same
time.
Greetz, Peter.
--
Peter van Dijk - student/sysadmin/ircoper/madly in love/pretending coder
|
| 'C makes it easy to shoot yourself in the foot;
| C++ makes it harder, but when you do it blows your whole leg off.'
| Bjarne Stroustrup, Inventor of C++