
msds
User
Sep 22, 2002, 11:47 PM
Post #1 of 16
(1093 views)
|
|
redircting output of one script as input to another
|
Can't Post
|
|
Hello, I want to combine three perl scripts into one piece of functioning code.Suppose,
a)prog1.pl reads an input string, /does some proccessing/ produces $string1 as output, which it writes to the file : firstfile.txt b)prog2.pl then reads $string1 as input from firstfile.txt /does some proccessing/ produces $string2 as output, which it writes to the file : secondfile.txt c)prog3.pl reads $string2 as input from secondfile.txt /does some proccessing/ produces $string3 as output, which it writes to thirdfile.txt The thirdfile.txt has the final required output. Is there a way in which we can have a kind of "main.pl " program, in which prog1.pl,prog2.pl,and prog3.pl can be made to execute one after the other.i.e we run the main.pl program , and check for the results in thirdfile.txt Any help would be appreciated. Thanx, msds
|