Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^4: system() issue

by vinoth.ree (Parson)
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 making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-01-27 04:04 GMT
Find Nodes?
    Voting Booth?

    My top resolution in 2015 is:

    Results (197 votes), past polls