Home > Archive > PerlTk > July 2005 > Re: nonblocking system call
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 |
Re: nonblocking system call
|
|
|
| Hi Folks,
my platform is Perl V. 5.8.4 under WinXP
whats the best way to start a nonblocking system call from a perlscript
with reading and displaying the output of the system call from STDOUT
(for
example the output of PPM)
Thanks
system("start /B path/programname");
or
`start /B path/programname`;
If you use the windows \, for paths remember to doulbe it up in
double quotes
system("start /B C:\\....");
| |
| zentara 2005-07-24, 8:45 pm |
| On 22 Jul 2005 05:55:46 -0700, "Gumby" <georgeziv@hotmail.com> wrote:
>Hi Folks,
>
>
>my platform is Perl V. 5.8.4 under WinXP
>
>
>whats the best way to start a nonblocking system call from a perlscript
>
>with reading and displaying the output of the system call from STDOUT
>(for
>example the output of PPM)
>
Just 2 cents.....
Try IPC::Run or read http://perlmonks.org?node_id=470827
I don't use windows. On linux we usually use IPC::Open3, but many
reports say that IPC::Open3 won't run on windows reliably, because it
can't use filevent. But you might want to give it a try, maybe it will
work with your version of windows.
BUT IPC::Run is supposed to work, since it uses sockets from what I
hear.
There may also be some Win32 module to do it.
--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
|
|
|
|
|