getting strings from the shell commands

Erik Max Francis max at alcyone.com
Fri Dec 21 14:37:38 EST 2001


"Sarcar, Shourya C (MED)" wrote:

> I want to do something in python LIKE
> 
> os.system("./myscript") but how can i get the out put into a [list of]
> strings

Use os.popen.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/  \ Laws are silent in time of war.
\__/ Cicero
    Esperanto reference / http://www.alcyone.com/max/lang/esperanto/
 An Esperanto reference for English speakers.



More information about the Python-list mailing list