Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Anyone using IPC::Cmd on Windows?
May 5, 2008, 12:39 pm
rate this thread
IPC::Cmd for running external programs. To my surprise, I found
returning false, meaning that I can't use it to capture the output of
the programs. Also, I found
returning false, but
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?
Re: Anyone using IPC::Cmd on Windows?
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
(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.)
You poor take courage, you rich take care:
The Earth was made a common treasury for everyone to share
All things in common, all people one.
'We come in peace'---the order came to cut them down. [firstname.lastname@example.org]
- » FAQ 3.29 When I tried to run my script, I got this message. What does it mean?
- — Previous thread in » PERL Discussions