cmcmillo has asked for the wisdom of the Perl Monks concerning the following question:
I want to open a named pipe to a running Daemon server. I don't want t +o start the server when I open a pipe to it. I just want to be able t +o write data to it while its running. In other words: open(HANDLE, "|running_server"); print HANDLE "DATA\n"; close(HANDLE); I know one way of writing to the mail server is by using a named pipe: + open(SENDMAIL, "|/usr/lib/sendmail -oi -t -odq") or die "Can't fork for sendmail: !\n"; Question: Does anyone know how I could do this? Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opening a named pipe to a daemon
by naikonta (Curate) on Jun 29, 2007 at 03:08 UTC | |
|
Re: Opening a named pipe to a daemon
by jbert (Priest) on Jun 29, 2007 at 06:46 UTC | |
|
Re: Opening a named pipe to a daemon
by jeanluca (Deacon) on Jun 30, 2007 at 06:43 UTC |