Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Child process reading <STDIN> from parent (open)

by tye (Sage)
on Oct 15, 2013 at 15:08 UTC ( #1058305=note: print w/replies, xml ) Need Help??


in reply to Child process reading <STDIN> from parent

open my $pipe, "| $script" or die "Can't fork to run $script: $!\n"; print $pipe $input; close $pipe

- tye        

Replies are listed 'Best First'.
Re^2: Child process reading <STDIN> from parent (open)
by rjohn1 (Sexton) on Oct 16, 2013 at 07:30 UTC
    Thanks tye, this is what i wanted. Though i tried something on the same lines before posting, but this simply worked.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2018-11-13 18:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My code is most likely broken because:
















    Results (158 votes). Check out past polls.

    Notices?