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

Re: Re: Send data to STDIN of a exec'ed program

by ndwg (Beadle)
on Nov 14, 2002 at 19:38 UTC ( [id://212977]=note: print w/replies, xml ) Need Help??


in reply to Re: Send data to STDIN of a exec'ed program
in thread Send data to STDIN of a exec'ed program

What do you mean by "return STDIN of the program to the controlling console"? Do you mean send *stdout* of the program to the console? Or redirect stdin to the console once the Perl process is finished writing to the child?

I would like to be able to redirect STDIN of the exec'ed process to the console, once the child process has finished writing the data to it.

(The open from pipe trick is nice, but I thought pipe/fork would give me more flexibility.)

Thanks, Nathan

  • Comment on Re: Re: Send data to STDIN of a exec'ed program

Replies are listed 'Best First'.
Re: Re: Re: Send data to STDIN of a exec'ed program
by jjdraco (Scribe) on Nov 15, 2002 at 04:25 UTC
    I would like to be able to redirect STDIN of the exec'ed process to the console, once the child process has finished writing the data to it.

    I'm sorry I have to say this. what you said is not what you want. what it sounds like to me is:
    you want to run a script that takes STDIN and sends it both to the child process and to the console.
    what it sounded like you said was:
    you want to pull the date the the exec'ed program just took in out of it and send it to the console and back to the program that was called.

    jjdraco
    learning Perl one statement at a time.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 06:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found