Heya,
os.system returns exit status of the command and not the ouput.
Try os.popen instead:
>>> import os
>>> data = os.popen('cat /etc/resolv.conf')
>>> data.read()
--
You received this message because you are subscribed to the Google Groups "Python GCU Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-gcu-for...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.