os
)Output the auto-detected OS name
Output the auto-detected OS name.
os -> <stdout>
os string -> <stdout>
» os
linux
Or if you want to check if the host is one of a number of platforms:
# When run on Linux or FreeBSD
» os linux freebsd
true
# When run on another platform, eg Windows or Darwin (macOS)
# (exit number would also be `1`)
» os linux freebsd
false
The intention is this allows simple tests in scripts:
if { os windows } then {
# run some Windows specific code
}
posix
is also supported to check if Murex is running on a UNIX-like operating system.
All Murex targets apart from Windows and Plan 9 are considered POSIX.
# When run on Linux or macOS
» os posix
true
# When run on Windows or Plan 9
# (exit number would also be `1`)
» os posix
false
Please note that although Plan 9 shares similarities with POSIX, it is not POSIX-compliant. For that reason, os
returns false with the posix
parameter when run on Plan 9. If you want to include Plan 9 in the check then please write it as os posix plan9
.
os
sys.os
cpuarch
): Output the hosts CPU architecturecpucount
): Output the number of CPU cores available on your hostThis document was generated from builtins/core/system/system_doc.yaml.
This site's content is rebuilt automatically from murex's source code after each merge to the master
branch. Downloadable murex binaries are also built with the website.
Last built on Sat Nov 23 00:50:15 UTC 2024 against commit 69c17da69c17da3bd9db98ca508f6a03a402f074ee24cec.
Current version is 6.4.0375 (develop) which has been verified against tests cases.