billiejoex wrote:
> Thank you for your help but I'm searching a different way.
> Moreover it doesn't work always (for exaple: try a 'dir' command).
> Because of I'm implementing a remote shell  the 
> [[os.popen('command').read()]] rapresents the best for me because it can 
> also accepts arguments direclty  (for example: 
> os.popen('netstat -a -n -o').read() and this is a great advantage.

If you really need shell evaluation, try subprocess.Popen('foo',
shell=True) instead.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to