How Can I Determine the Operating System with Python?

hdiwan420 at speakeasy.net hdiwan420 at speakeasy.net
Thu Mar 21 21:59:49 EST 2002


ingo <ingoogni at home.nl> writes:
> >>> os.environ['OS']
>'Windows_NT'
If you have nmap or queso installed, you can always do:
% sudo nmap -v -v -v -sS -O localhost
or 
% sudo queso localhost

	Ok, so it's not exact, but it's just as good as any other way and both
exist on Windows and Unix.
-- 
Hasan =)
GPG KeyID: 0xBE42DCA6
Fingerprint: 1CB0 47E3 0A24 DAC1 DCCA  4225 F166 40C2 BE42 DCA6



More information about the Python-list mailing list