Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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


Comment on Re^6: How to execute external programs from perl script
Select or Download Code

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 pondering the Monastery: (14)
As of 2015-07-30 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls