newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: csfreebird on February 22, 2013, 01:46:15 AM

Title: Don't know how to get OS infomation
Post by: csfreebird on February 22, 2013, 01:46:15 AM
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?
Title: Re: Don't know how to get OS infomation
Post by: cormullion on February 22, 2013, 03:29:26 AM
Perhaps:


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


Or do you want to know more than that?
Title: Re: Don't know how to get OS infomation
Post by: csfreebird on February 22, 2013, 04:07:32 AM
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.