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


Groups > comp.lang.python > #38725

how to call shell?

Date 2013-02-12 13:12 +0800
Subject how to call shell?
From contro opinion <contropinion@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.1682.1360645931.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
>>>
why i can't get the value of i ?

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


Thread

how to call shell? contro opinion <contropinion@gmail.com> - 2013-02-12 13:12 +0800
  Re: how to call shell? Tim Roberts <timr@probo.com> - 2013-02-11 21:43 -0800

csiph-web