please help me understand os.system() result
Roman Suzi
rnd at onego.ru
Tue May 20 07:17:17 EDT 2003
Under Linux I have very strange results for exit status info:
>>> os.system("exit 7")
1792
>>> os.system("python -c 'import sys;sys.exit(1)'")
256
>>> os.system("python -c 'import sys;sys.exit(2)'")
512
True for my RH 7.3 and 6.2, for Pythons 1.5.2, 2.1, 2.2.2.
Any ideas?
Sincerely yours, Roman A.Suzi
--
- Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
More information about the Python-list
mailing list