Don't know how to get OS infomation

Started by csfreebird, February 22, 2013, 01:46:15 AM

Previous topic - Next topic

csfreebird

I read the document for sys-info, and try it in my Ubuntu 12.10 AMD64bit environment.

The following is what I got:

> (sys-info)

(510 576460752303423488 411 1 0 2048 0 5350 10406 1409)

> (sys-info 9)

1409



1409 means what?

How to check my OS is windows or Linux?

cormullion

#1
Perhaps:


(case
 ostype
 ("Win32"  (println  "windows"))
 ("Linux"  (println  "penguins"))
 ("OSX"    (println  "big cats")))


Or do you want to know more than that?

csfreebird

#2
Thank you. I will use it for now.

It would be better if I could know the exact OS name,e.g. Ubuntu or Windows 7.