Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #38727

call shell from python

Date 2013-02-12 13:13 +0800
Subject call shell from python
From contro opinion <contropinion@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1684.1360646021.2939.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

0
how can i get the value of  i?

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

call shell from python contro opinion <contropinion@gmail.com> - 2013-02-12 13:13 +0800
  Re: call shell from python spilcm@hotmail.com - 2013-02-12 02:30 -0800
  Re: call shell from python spilcm@hotmail.com - 2013-02-12 02:30 -0800

csiph-web