[EMAIL PROTECTED] wrote:
> hello everyone,
>
> Im trying to write some python code that will return information (file
> size, last modified ...) about files on a remote computer that I have
> 'no password' ssh access to. Ive been able to write code that logs on
> to remote computers and I can iss
You should use os.popen() instead of os.system.
os.popen() will return a file-like object that is connected to the stdout of
the system command; you can then use that object's read()/readlines()
method(s) to assign that output to a Python variable.
http://docs.python.org/lib/module-popen2.html