chak9988 has asked for the wisdom of the Perl Monks concerning the following question:
This question might have been asked in this forum before, but I could not find suitable answer in archives. Kindly direct me to node, if it was answered
Here is my query:
I want to run a program called "phylip" from perl script. "phylip" is a command line program, that has many sub-programs in it. Typically a phylip program appears like this when executed at command prompt
Every-time I run phylip program, I know exactly when to type what character/string. (In above example I have to type: phylip sub_program_1, R, phylip sub_program_2, R).chak:~$ phylip sub_program_1 sub_program_1: the file "out-file" that you wanted to use as output file already exists. Do you want to Replace it, Append to it, write to a new File, or Quit? (please type R, A, F, or Q) ..... (phylip subprogram_2 ...... please type R, A, F, or Q) n times
My perl script generates files required for phylip program, so it would be cool, if I can automate these steps in perl script itself
Can anyone advice me on how to do this ?
ThanksChak
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to execute external programs from perl script
by hbm (Hermit) on Feb 03, 2011 at 21:28 UTC | |
|
Re: How to execute external programs from perl script
by Anonyrnous Monk (Hermit) on Feb 03, 2011 at 21:52 UTC | |
by chak9988 (Initiate) on Feb 04, 2011 at 14:08 UTC | |
by Anonyrnous Monk (Hermit) on Feb 04, 2011 at 15:02 UTC | |
by chak9988 (Initiate) on Feb 04, 2011 at 16:40 UTC | |
by Anonyrnous Monk (Hermit) on Feb 04, 2011 at 17:30 UTC | |
| |
|
Re: How to execute external programs from perl script
by sierpinski (Chaplain) on Feb 03, 2011 at 20:58 UTC |