Angharad has asked for the wisdom of the Perl Monks concerning the following question:
I have downloaded a third party linux program that will not take any arguements on the command line. One has to state the file to be processed once the program has started, press enter, and then the program will do its stuff and exit. I have a relatively large number of files that I want to process using this program but I don't want to have to run the program for each of these files individually.
The obvious solution is a perl program but I'm not sure as to how to go about doing it. Right now, I'm just trying to write some perl code that will execute the third party program and process a single file
I havent gotten very far but here is the code anyway
Needless to say this doesnt work. Any suggestions/comments much appreciated.#!/usr/bin/perl $xtlsstr = "xtlsstr"; open(XTL, "$xtlsstr"); print XTL "1ax8.pdb";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: running an interactive only program using perl
by ikegami (Patriarch) on Jul 12, 2005 at 18:09 UTC | |
|
Re: running an interactive only program using perl
by Joost (Canon) on Jul 12, 2005 at 18:12 UTC | |
|
Re: running an interactive only program using perl
by merlyn (Sage) on Jul 12, 2005 at 18:53 UTC | |
|
Re: running an interactive only program using perl
by zentara (Cardinal) on Jul 12, 2005 at 19:54 UTC | |
|
Re: running an interactive only program using perl
by davidrw (Prior) on Jul 12, 2005 at 19:14 UTC |