plash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Plash] Odd popen behaviour


From: Thomas Leonard
Subject: [Plash] Odd popen behaviour
Date: Mon, 19 Jun 2006 22:00:24 +0100

This Python program behaves strangely under plash:

import os
cin, cout = os.popen2(('echo', 'hello'))
cin.close()
print "GOT:", `cout.read()`
cout.close()

$ /usr/bin/python t.py
GOT: 'hello\n'
$ pola-run --prog /usr/bin/python -B -a t.py -fw /
GOT: ''

Anyone know why?


--
Dr Thomas Leonard               http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]