Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re^4: system() issue

by vinoth.ree (Prior)
on Dec 13, 2013 at 08:08 UTC ( #1067001=note: print w/ replies, xml ) Need Help??

in reply to Re^3: system() issue
in thread system() issue

#!/usr/bin/perl -w [download] use strict; &sub1; #generates a text file (rep_set.txt) system('python //macqiime/QIIME/bin/ -i rep_set.txt +-o .'); #generates second txt file if ( $? == -1 ) { print "command failed: $!\n"; } else { printf "command exited with value %d", $? >> 8; } &sub2; #reads the second text file

Try your script this way of checking the exit status of your python script.

All is well

Comment on Re^4: system() issue
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2015-11-27 02:36 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (714 votes), past polls