in reply to open3 and IO::Select

Are you doing your testing in Windows or Unix? select (the underlying system call used by IO::Select) only works for sockets in Windows.

"$em_command &" is silly, complicates things, and might even cause problems. Simply $em_command is needed.

open3 throws an exception on error. It doesn't return, much less with a string matching /^open3:/.

$handle contains the handle, but you pass $rh to sysread.

Replies are listed 'Best First'.
Re^2: open3 and IO::Select
by stephens2k (Novice) on Nov 19, 2007 at 21:53 UTC
    I'm trying to test on Windows. It will be installed on Unix when we have an available test server ready.

    OK, I can kill the bckground on the command.

    I'll test these changes tomorrow.

    Thanks