Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Setting up 2 way pipe for a command

by gloryhack (Deacon)
on Jul 03, 2008 at 00:48 UTC ( [id://695254]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Setting up 2 way pipe for a command
in thread Setting up 2 way pipe for a command

Uh... "premature end error"? As in HTTP server error response? If this is indeed the case, try running the thing from the command line, or at least printing a text/plain header somewhere ahead of the block above.

Maybe on that iteration that didn't puke, the application being run via IPC::Run didn't output anything?

  • Comment on Re^3: Setting up 2 way pipe for a command

Replies are listed 'Best First'.
Re^4: Setting up 2 way pipe for a command
by gw1500se (Beadle) on Jul 03, 2008 at 23:19 UTC
    Thanks for the reply. Its the "process ended prematurely" error. Sorry I didn't take the time to look up the error rather than go from poor memory. Perhaps I am misunderstanding how this works but there indeed may not be any output on the first call to 'pump'. However, there is definitely input. I then try to drain any output in the 'pumpable' loop before going on to the next input string. Therefore the way I think it works this condition should never happen unless there is a bug in the 'pumpable' function. If I am misunderstanding, please correct me as that would be the solution to my problem.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2024-04-25 02:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found