Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting stdin to stdout and stdout to stdin of two perl scripts

Status
Not open for further replies.

tianshiz

Programmer
Jun 18, 2010
9
US
hey guys,

I have two perl scripts that takes input and outputs. I know its possible to have one script to read the stdout of the other:
Code:
perl param_send.pl | perl param_receive.pl

but is it possible for param_send to also receive from param_receive at the same time? I guess this is sort of like a feedback loop

thanks!
 
Not sure how you could do it using stdin/stdout; but you could easily create a named pipe file and use that instead? See man mknod.

Annihilannic
[small]tgmlify - code syntax highlighting for your tek-tips posts[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top