debugging os.spawn*() calls
Skip Montanaro
skip at pobox.com
Fri Jan 28 10:23:09 EST 2005
I have an os.spawnv call that's failing:
pid = os.spawnv(os.P_NOWAIT, "ssh",
["ssh", remote,
"PATH=%(path)s nice -20 make -C %(pwd)s" % locals()])
When I wait for it the status returned is 32512, indicating an exit status
of 127. Unfortunately, I see no way to collect stdout or stderr from the
spawned process, so I can't tell what's going wrong.
The "ssh remotehost PATH=$PATH nice -20 make ..." command works fine from a
similar shell script.
Thx,
Skip
More information about the Python-list
mailing list