stdout from spawn?

Cipo Fuzo lists at panka.com
Mon May 5 11:46:15 EDT 2003


Hello,


I'm trying to run

tar -tvf /dev/tape > /tmp/tar.out

using os.spawn with the P_NOWAIT option.
Howerver when I do

pid =
os.spawnvp(os.P_NOWAIT,'tar',('tar','-tvf','/dev/tape','>','/tmp/tar.out'))

tar errors out because it gets '>' and '/dev/tape' as an argument.

I need to start this in the background, and also need the process id.

Any ideas?


Thanks,
Cipo







More information about the Python-list mailing list