Steve Holden wrote:
> Hari Sekhon wrote:
>> I'm running a command like
>>
>> import commands
>> result = commands.getstatusoutput('somecommand')
>> print result[0]
>> 3072
...
> No, it's just returning the error code in the top half of a sixteen-bit
> value. You will notice that 3072 == 2 * 256.
For the rest of us playing along at home, there is a typo there:
The preceding line should read:
> value. You will notice that 3072 == 12 * 256.
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list