Help with 'popen'

stephen_b stephen at theboulets.net
Sun Jan 21 22:30:40 EST 2007


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




More information about the Python-list mailing list