Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
Corion idly wonders if there is a way to produce ordered .yml files. I want to accept YAML for a configuration file format, but I also want to generate (for debugging/start) a sample configuration file from the current configuration.
[Corion]: Ideally, that configuration file would have some order of the keys, but I'm not sure whether/how YAML supports ordered output.
[Corion]: Basically I have this metadata and generating a purposeful example is much better if the output is ordered in the same way the documentation is ordered

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2017-01-16 12:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (149 votes). Check out past polls.