Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2018-07-23 16:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (472 votes). Check out past polls.

    Notices?