How to get the output from os.system() into a variable?

Laszlo Zsolt Nagy gandalf at designaproduct.biz
Wed Oct 5 09:54:45 EDT 2005


>>result=python_command(' command_on_the_bash ')
>>
>>Is that possible? And how to do that?
>>    
>>
>
>Check out the commands module.
>
>http://docs.python.org/lib/module-commands.html
>
Hmm, I forgot this one. It is only working from UNIX, am I right?

   Les




More information about the Python-list mailing list