system exec ?

Joonas Paalasmaa joonas.paalasmaa at nokia.com
Thu Jul 5 12:37:35 CEST 2001


alphaZeta wrote:
> 
> Hi,
> 
> I didn't find any documentation (lib and tut) about how to execute a program
> in a python script.
> Does anybody know ?
> 
> For example : I would like to store in a variable the result of a call to
> the system.
> alike : >>> a = sys.exe("ls -l")

a = os.popen("ls -l","r").read()



More information about the Python-list mailing list