Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: Non-blocking pipe write

by melora (Scribe)
on Nov 05, 2004 at 01:39 UTC ( [id://405358]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Non-blocking pipe write
in thread Non-blocking pipe write

I'm trying to run it under win32 and it doesn't block, but it also doesn't appear to be forking. That is, the child process isn't running at all, yet the "die" doesn't happen, either. I'm also getting a "bad command or file name" message, which seems to be a result of the open($handle, "|-") call. Problem opening a pipe in a win32 machine?
Hang on - it isn't running under FreeBSD for me, either:
Can't use an undefined value as a symbol reference at pipes.pl line 8.
and then it quits. Line 8 is:
if (!defined($pid = open($handle, "|-"))) {
I'm just playing with this trying to learn. Sounds like the open is failing. What am I missing? Update: Well, I understand that $handle is undefined at that point. What I am wondering is what it should be.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://405358]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2024-03-29 08:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found