I do this in the Python Console in Blender 2.64 on Ubuntu 11.04:
>>> import os >>> os.system('ls') 0 >>> os.system('ls /') 0 >>> os.system('echo aa') 0
If that 0 is return status, it implies the command should have executed successfully - yet nothing is printed to the terminal? However, if I do:
>>> os.system('echo aa > /tmp/test.txt') 0
... then there is a
/tmp/test.txt file created, with the expected contents ?!
So, the problem is apparently getting the stdout of the system shell routed to the Python console. Is there any way to get this done, so I can see the output of, say,
echo in the Python console?