Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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/assign_taxonomy.py -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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2014-12-20 23:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (99 votes), past polls