Becky has asked for the wisdom of the Perl Monks concerning the following question:
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./path/to/Predator/predator -foutput_file.txt input_file.txt
My system call in my perl program therefore looks like this:
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.system "/home/rebecca/bs127/Predator/predator -fpredator.txt input_seq +uence.txt
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: system call not working
by virtualsue (Vicar) on Jul 11, 2002 at 12:52 UTC | |
|
Re: system call not working
by io (Scribe) on Jul 11, 2002 at 12:47 UTC | |
by krujos (Curate) on Jul 11, 2002 at 14:24 UTC | |
|
Re: system call not working
by grantm (Parson) on Jul 11, 2002 at 12:54 UTC | |
|
Re: system call not working
by Abigail-II (Bishop) on Jul 11, 2002 at 14:31 UTC | |
|
Re: system call not working
by flounder99 (Friar) on Jul 11, 2002 at 13:22 UTC |