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
In reply to How to execute external programs from perl script by chak9988
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |