|Just another Perl shrine|
Re: Open3 and bad gut feelingby particle (Vicar)
|on Feb 20, 2002 at 08:04 UTC||Need Help??|
coreolyn, i've been following this node very closely. you can see by my replies that i have been trying to solve a similar issue. i was never satisfied with my implementation... mostly due to tilly's constant, nagging reminders to use select :)
well, i did a little investigation on select, and i found some interesting things you'll appreciate. for instance, select is only implemented on sockets in Win32. hrmm. also, open2/open3 cannot redirect input/output in a child process via fork in Win32. i'm afraid a lot of the code you have there is not doing anything useful.
here's a list of links for more information:
here's a test script to verify select is in fact, not working. can_write, can_read, and has_exception all come back undef on Win32... (see below)
i'm now working on a client / server solution for executing external programs and redirecting output using sockets. as soon as i have something solid, i'll be sure to post it, and /msg you with the node_id.
thank you for using microsoft ;-D