vasu has asked for the wisdom of the Perl Monks concerning the following question:
The problem is that the client sees the initial outputs but once the server starts reading it's STDIN, there is no more lines written to the client. What am I doing wrong ?#!/usr/bin/perl select(STDOUT); $|++; for ($i=0;$i<100; $i++) { print "Started application - $i\n"; } open (FH, ">> /tmp/xyz.log"); select(FH);$|++; while (<>) { print FH $_; if (/^ping/) { print "PING BACK\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inetd server not writing correctly to client
by jsprat (Curate) on Mar 20, 2003 at 02:45 UTC | |
|
Re: inetd server not writing correctly to client
by rjray (Chaplain) on Mar 20, 2003 at 03:16 UTC | |
|
Re: inetd server not writing correctly to client
by vasu (Novice) on Mar 20, 2003 at 02:38 UTC |