How to get the return status of a command runned by os.popen4
Xavier Defrang
xavier at perceval.net
Wed Sep 5 10:31:56 EDT 2001
On Wed, 5 Sep 2001, Alain Barthe wrote:
> > > Anybody has the solution ?
> > >
> > > Thanks.
I won't claim it's THE solution but you may wrap the executable into
another one which actually grabs that return value and print it afterwards
on stdout or stderr so you know that the very last line read on this
stream contains the exitcode...
Hope it helps, regards.5~
Xavier Defrang
Perceval R&D Team
xavier at perceval.net
-------------------------------------------------
Perceval Technologies SA/NV Tel: +32-2-6409194
Rue Tenbosch, 9 Fax: +32-2-6403154
B-1000 Brussels http://www.perceval.net
BELGIUM info at perceval.net
-------------------------------------------------
More information about the Python-list
mailing list