Hi, I've written a perl program which makes a system call to a program called 'Predator' (for the biologists among you it's a protein secondary structure prediction program). You run Predator from the command line as follows:
/path/to/Predator/predator -foutput_file.txt input_file.txt
where Predator reads from input_file.txt and writes the results to output_file.txt. If you miss out -foutput_file.txt the results are written straight to screen.
My system call in my perl program therefore looks like this:
system "/home/rebecca/bs127/Predator/predator -fpredator.txt input_seq
+uence.txt
However, this doesn't work - predator.txt is not created. There's definitely not a problem opening input_sequence.txt, because this is used successfully elsewhere in the program.
Predator works on input_sequence and creates predator.txt when run from the command line.
What could the problem be? I'm assuming it's permissions of some sort, but don't know enough about them to see what. Any ideas?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.