Re: Help with 'popen'

2007-01-22 Thread Tim Roberts
James Stroud <[EMAIL PROTECTED]> wrote: >stephen_b wrote: > >> Can someone let me know why this won't work? Thanks. >> >from os import popen >popen('export asdfasdf=hello').read() >> '' >popen('echo $asdfasdf').read() >> '\n' > >Python starts a new shell for each command, so your envir

Re: Help with 'popen'

2007-01-21 Thread James Stroud
stephen_b wrote: > Can someone let me know why this won't work? Thanks. > > from os import popen popen('export asdfasdf=hello').read() > > '' > popen('echo $asdfasdf').read() > > '\n' > > Thanks. > > Stephen > Python starts a new shell for each command, so your environment vari

Help with 'popen'

2007-01-21 Thread stephen_b
Can someone let me know why this won't work? Thanks. >>> from os import popen >>> popen('export asdfasdf=hello').read() '' >>> popen('echo $asdfasdf').read() '\n' Thanks. Stephen -- http://mail.python.org/mailman/listinfo/python-list