call shell from python

contro opinion contropinion at gmail.com
Tue Feb 12 06:13:38 CET 2013


>>> import os
>>> os.system("i=3")
0
>>> os.system("echo $i")

0
how can i get the value of  i?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130212/98efd897/attachment.html>


More information about the Python-list mailing list