Perl: the Markov chain saw | |
PerlMonks |
Re: UNIX shell scripts + pipesby penguinfuz (Pilgrim) |
on May 27, 2002 at 15:50 UTC ( [id://169607]=note: print w/replies, xml ) | Need Help?? |
...i am trying to write a shell script that will run 5 of my programs in sequential order. Are these programs shell scripts, perl scripts, or what? ...however i don't know how to do it so that the input files can be different I do not quite understand this one. ...i also want to pipe the out put file so that it can be the input file of the next program. If the 5 programs are perl scripts why not condence them into 5 subroutines included in the same script? ;) If the programs are shell scripts just feed their output into an array and process by passing each value to another subroutine. Assuming you are taking output from running the other scripts, here is an example of my understanding. 3 scripts: start.pl, hello.pl, and chopup.pl start.pl hello.pl chopup.pl Run ./start.pl and all files will be processed. I hope this helps, or maybe I should say I hope my understanding is correct! ;
In Section
Seekers of Perl Wisdom
|
|