call from pthon to shell

Discussion in 'Python' started by Bqsj Sjbq, Feb 12, 2013.

  1. Bqsj Sjbq

    Bqsj Sjbq Guest

    >>> import os
    >>> os.system("i=3")

    0
    >>> os.system("echo $i")


    0

    why i can not get the value of i?
    Bqsj Sjbq, Feb 12, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    5,695
    Jonathan Bromley
    Feb 18, 2005
  2. Christian Heimes
    Replies:
    0
    Views:
    598
    Christian Heimes
    Feb 27, 2008
  3. Gerardo Herzig
    Replies:
    1
    Views:
    1,076
    Philipp Pagel
    Feb 27, 2008
  4. Andrew Robinson

    Re: call from pthon to shell

    Andrew Robinson, Feb 12, 2013, in forum: Python
    Replies:
    0
    Views:
    83
    Andrew Robinson
    Feb 12, 2013
  5. Jason Friedman

    Re: call from pthon to shell

    Jason Friedman, Feb 17, 2013, in forum: Python
    Replies:
    0
    Views:
    88
    Jason Friedman
    Feb 17, 2013
Loading...

Share This Page