Re: printing to a redirected stdout from a process that was called with 21 /dev/null

2007-03-15 Thread [EMAIL PROTECTED]
On Jan 29, 7:12 pm, Pappy [EMAIL PROTECTED] wrote: SHORT VERSION:PythonFile B changes sys.stdout to a file so all 'prints' are written to the file. Pythonfile A launchespythonfile B with os.popen(./B 2^1 dev/null ). PythonB's output disappears into never-never land. LONG VERSION: I am

Re: printing to a redirected stdout from a process that was called with 21 /dev/null

2007-01-30 Thread Chris Lambacher
On Mon, Jan 29, 2007 at 03:12:37PM -0800, Pappy wrote: SHORT VERSION: Python File B changes sys.stdout to a file so all 'prints' are written to the file. Python file A launches python file B with os.popen(./B 2^1 dev/null ). Python B's output disappears into never-never land. LONG

Re: printing to a redirected stdout from a process that was called with 21 /dev/null

2007-01-30 Thread Jason Persampieri
Sadly, the group is tied to Python 2.3 for now. Actually, I got around this problem by using an intermediate process that happens to handle output on its own (bsub). On 1/30/07, Chris Lambacher [EMAIL PROTECTED] wrote: The subprocess module is probably a good starting point:

Re: printing to a redirected stdout from a process that was called with 21 /dev/null

2007-01-30 Thread Chris Lambacher
On Tue, Jan 30, 2007 at 10:42:22AM -0500, Jason Persampieri wrote: Sadly, the group is tied to Python 2.3 for now. Subprocess for 2.2 and 2.3: http://www.lysator.liu.se/~astrand/popen5/ Win32 installers for subversion for 2.2 and 2.3: http://www.lysator.liu.se/~astrand/popen5/ -Chris

printing to a redirected stdout from a process that was called with 21 /dev/null

2007-01-29 Thread Pappy
SHORT VERSION: Python File B changes sys.stdout to a file so all 'prints' are written to the file. Python file A launches python file B with os.popen(./B 2^1 dev/null ). Python B's output disappears into never-never land. LONG VERSION: I am working on a site that can kick off large-scale