I am trying to execute a python script from another and storing the output value in a variable.
When I do this:
import os
test = os.system("/usr/local/bin/script1.py")
print test;
and then execute the script I get an extra zero on the results:
$ ./test.py
171
0
script1.py does produce "171" as the output, but not sure where the extra zero is coming from... Any ideas?