How to disable spawnv's child process output messages

nushin nushin2 at yahoo.com
Tue Jul 22 22:08:41 EDT 2003


Greetings,

I have a program called hello_earth.py that is spawned by
hello_moon.py, using spawnv( ) API as:

os.spawnv(os.P_NOWAIT,'/usr/bin/python',('python','hello_earth.py'),('>/dev/null
&'))

I do not wish to see any output messages from the hello_earth.py when
it is launched by its parent process and i do wish to see *only* the
output messages from the parent process in the shell. Is Python
capable to so such a thing?

I have used '>/dev/null &' to disable the output of the child process,
but unfortunately, i still see them. Is there a way around it?

Reagrds,
BB




More information about the Python-list mailing list