Page 1 of 1

Don't know how to get OS infomation

Posted: Fri Feb 22, 2013 9:46 am
by 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?

Re: Don't know how to get OS infomation

Posted: Fri Feb 22, 2013 11:29 am
by cormullion
Perhaps:

Code: Select all

(case 
 ostype 
 ("Win32"  (println  "windows"))
 ("Linux"  (println  "penguins"))
 ("OSX"    (println  "big cats")))
Or do you want to know more than that?

Re: Don't know how to get OS infomation

Posted: Fri Feb 22, 2013 12:07 pm
by csfreebird
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.