Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: system call not working

by io (Scribe)
on Jul 11, 2002 at 12:47 UTC ( #181009=note: print w/ replies, xml ) Need Help??


in reply to system call not working

you forgot a quote here:

system "/home/rebecca/bs127/Predator/predator -fpredator.txt input_seq +uence.txt <---

Im assuming it is right in your script. You could try to use 'backticks' to catch the output:

my $output = `/home/rebecca/bs127/Predator/predator input_sequence.txt +`; open (FILE, ">predator.txt") or die $!; print FILE $output; close (FILE) or die $!;

About permissions, has your script got write permissions for the local directory?

hope it helps


Comment on Re: system call not working
Select or Download Code
Re: Re: system call not working
by krujos (Curate) on Jul 11, 2002 at 14:24 UTC
    Or does the user running the script have write permission to the dir?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://181009]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2015-07-05 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls