Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^6: How to execute external programs from perl script

by chak9988 (Initiate)
on Feb 04, 2011 at 18:42 UTC ( #886269=note: print w/ replies, xml ) Need Help??


in reply to Re^5: How to execute external programs from perl script
in thread How to execute external programs from perl script

system 'echo "r\ny\nr" | phylip sub_program_1';

Hurray... it runs perfectly well :-) Your observation, to include "\n" after each alphabet is correct way to run "phylip"

you wrote in Re^3..
Try system 'echo "rYr" | phylip sub_program_1'; or system 'echo -e "r\nY\nr" | phylip sub_program_1';

By giving "\n" and "- e", "phylip" was overfed. So, It didn't work that time.

After you have explained function of "-e" and "-n" in Re^5, I removed "-e" and it worked perfectly well.

I appreciate your help,

Cheers

Chak

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://886269]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2016-06-30 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (405 votes). Check out past polls.