467,179 Members | 1,179 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,179 developers. It's quick & easy.

communication between two scripts


I have 2 scrpits.How can I make the Script1 standard output be the Script2 standard input,during all run? I have Windows XP.

Sep 29 '08 #1
  • viewed: 2409
5 Replies
Expert 2GB
You would have to use piping. Not sure if this works on a DOS command prompt, but in a Linux shell at least, you would type:

Expand|Select|Wrap|Line Numbers
  1. script1.pl | script2.pl
Sep 29 '08 #2
Thanks for your help but it really doesnt work.The first scipt begin run but when I write to pipe the second run again from start end come back whit fail.
To be other way to make it in Windows?

Sep 29 '08 #3

I tried this before:

Expand|Select|Wrap|Line Numbers
  1. open(PIPE,"|perl -w Srcipt.pl"); 
  2.  print PIPE "hello";
  3.  close(PIPE);

But this restart the destination script:I want write to the standard input of the destination script between it work.
Sep 29 '08 #5
Expert 2GB
read the page I linked you to, all of it.
Sep 29 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

5 posts views Thread by ChrisH | last post: by
9 posts views Thread by Chris | last post: by
1 post views Thread by MatthewRoberts | last post: by
reply views Thread by Murali | last post: by
2 posts views Thread by Murali | last post: by
1 post views Thread by Sandy Dunlop | last post: by
5 posts views Thread by AeonOfTime | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.