Anyone using IPC::Cmd on Windows?

R

Ronny

I'm using ActiveState Perl 5.10.0 for Windows, and wanted to use
IPC::Cmd for running external programs. To my surprise, I found

IPC::Cmd->can_capture_buffer

returning false, meaning that I can't use it to capture the output of
the programs. Also, I found

IPC::Cmd->can_use_ipc_run

returning false, but

IPC::Cmd->can_use_ipc_open3

returning true. Does anybody know about a Perl implementation for
Windows where these features are implemented? Can the
ActiveState implementation of IPC::Cmd be used for anything
useful at all under these circumstances?

Ronald
 
B

Ben Morrow

Quoth Ronny said:
I'm using ActiveState Perl 5.10.0 for Windows, and wanted to use
IPC::Cmd for running external programs. To my surprise, I found

IPC::Cmd->can_capture_buffer

returning false, meaning that I can't use it to capture the output of
the programs. Also, I found

IPC::Cmd->can_use_ipc_run

returning false, but

IPC::Cmd->can_use_ipc_open3

returning true. Does anybody know about a Perl implementation for
Windows where these features are implemented? Can the
ActiveState implementation of IPC::Cmd be used for anything
useful at all under these circumstances?

You need to install IPC::Run. You can only capture buffers under Win32
if you can use IPC::Run (and if you're not on Win98), and you can only
use IPC::Run if it's installed. Probably IPC::Cmd ought to depend on
IPC::Run if it's being installed under Win32, since it isn't useful
without it.

(As a hint, all of the above is very clear from the source of the
module. If a module's not doing what you expect, it's always worth at
least glancing at the source, to see if there's some obvious reason.)

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top