Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: why IPC::Open3 can't execute MS-DOS "dir" command?

by ikegami (Pope)
on Dec 04, 2009 at 13:07 UTC ( #811080=note: print w/replies, xml ) Need Help??


in reply to why IPC::Open3 can't execute MS-DOS "dir" command?

You have a race condition.

The child is waiting for the pipe to empty so it can print out more.

The parent is waiting for the child to end before emptying the pipe.

  • Comment on Re: why IPC::Open3 can't execute MS-DOS "dir" command?

Replies are listed 'Best First'.
Re^2: why IPC::Open3 can't execute MS-DOS "dir" command?
by Anonymous Monk on Dec 07, 2009 at 01:35 UTC
    That might be the problem, do you know how can I solve it? thanks
      Yes, don't launch a program to get a directory listing. Two other posts in this thread discuss alternatives: moritz's and afoken's

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://811080]
help
Chatterbox?
and a log crumbles through the grate...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2016-12-06 21:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (118 votes). Check out past polls.