On Sun, Jul 27, 2003 at 08:25:14PM +0200, Gooly wrote:
> Hi again,
> 
> I have a problem which I don't understand with that Job_Server:
>       http://poe.perl.org/?POE_Cookbook/Job_Server
> using
>       use POE qw(Component::Server::TCP Wheel::Run);
> 
> The Job_server seems not to get the STDOUT of the job?
> So - in short - in the job:
>       print $incommingLines,"\r\n"; # is silent
> Even the console (where the Job_Server is running) doesn't print anything.
> (even this does not work
>       print STDOUT $incommingLines,"\r\n"; # is silent
> )
> but this works:
>               print STDERR $incommingLines,"\r\n"; # rceives the Client

[...]

> the $program started correctly, I even can send lines to the job, but I get 
> those lines back only via STDERR.

I think your child program has buffered STDOUT.  STDERR, by default, is
not buffered, so output reaches the parent process in a timely fashion.
Try setting $|=1 in the child program to turn off STDOUT buffering.

-- 
Rocco Caputo - [EMAIL PROTECTED] - http://poe.perl.org/

Reply via email to