Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Child process reading <STDIN> from parent

by Eily (Deacon)
on Oct 15, 2013 at 07:59 UTC ( #1058258=note: print w/ replies, xml ) Need Help??


in reply to Child process reading <STDIN> from parent

Why do you want to do that in the first place? Not that there aren't perfectly good reason to try and write on another process' STDIN, but since you don't seem to know very well what you are doing, I can't help but wonder if you didn't take that problem by the wrong end.

Then, to answer your question, from what little information you gave us, it looks like a job for pipes. In perlopentut you'll see how to open a process and obtain a filehandle to read from its output or write in its input.


Comment on Re: Child process reading <STDIN> from parent
Re^2: Child process reading <STDIN> from parent
by rjohn1 (Acolyte) on Oct 15, 2013 at 08:16 UTC

    Sorry, i posted the original question without logging in. I am a new user.

    I have provided details as rjohn1(my id)

    Hope somebody could look into the code

      I would recommend you read Eily's post. I think that will get you on the best path.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2014-12-20 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (96 votes), past polls