For Programmers: Free Programming Magazines  


Home > Archive > PERL Programming > February 2006 > open3 STDERR blocking









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author open3 STDERR blocking
scott.pham@gmail.com

2006-02-08, 6:57 pm

I'm currently using open3 to launch ssh sessions, when I use -vvv with
ssh the process is blocked by STDERR. When I only use the -v flag, it
works perfectly. ssh prints to STDERR for debug information.

when I close STDERR before the open3 call, it works, except I lose all
information on STDERR. I've tried to dupe STDERR to STDOUT and
still the same issues.

The error handle I pass to open3, doesn't seem to work if I close
STDERR. Anyone have a work around for this issue?

I've tried several non blocking code using IO::Select,
IO::Handle(->blocking(0)). Nothing seems to work like it should. Some
pointers would be great :).

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com