Up |
osInfos
Returns some informations about the operating system
Prototype :
fun [] [S S S S]
Return : [S S S S]
- On Microsoft Windows :
- S : Operating system : 2000 and next
"Microsoft Windows 2000", "Microsoft Windows XP Home", "Microsoft Windows XP Professional", "Microsoft Windows XP Professional x64", "Microsoft Windows Vista", "Microsoft Windows Seven", "Microsoft Windows 8", "Microsoft Windows 8.1" otherwise "Microsoft Windows"
"Microsoft Windows Server 2008", "Microsoft Windows Server 2008 R2", "Microsoft Windows Server 2012", "Microsoft Windows Server 2012 R2" - S : Service pack like "Service Pack 3", if any
- S : Windows build number
- S : Architecture : "64-bit" (x64), "32-bit" (x86) or "Other"
- S : Operating system : 2000 and next
- On GNU/Linux : (depends on 'uname' results)
- S : the name of the Linux distribution, like "Ubuntu", "OpenSuse", ...
- S : kernel or release version
- S : version of the distribution
- S : architecture, like i686, ...
- Others systems : not yet implemented
See also :
Examples :
Example MS Windows :
_fooS sprintf "OS : %s\nService pack : %s\nBuild number : %s\nArchitecture : %s\n" osInfos;
Console :
OS : Microsoft Windows Seven Service pack : Build number : 7600 Architecture : 32-bit
Example GNU/Linux :
_fooS sprintf "OS : %s\nKernel :%s\nDistribution : %s\nArchitecture : %s\n" osInfos;
Console :
OS : Linux Kernel : 2.6.32-34-generic Distribution : #76-Ubuntu SMP Tue Aug 30 16:19:34 UTC 2011 Architecture : i686