Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 wandering the Monastery: (4)
As of 2014-07-26 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (175 votes), past polls