Innov-AI     Services     Supporters     Contact     About    
OS

Here you can call the OS.

os versionos archos nameos typeos hostnameos user_timezoneos user_nameos user_langos user_homeos user_diros execute

os version


Description

    To get the OS version

admin
os version
mentdb
10.12.6

os arch


Description

    To get the OS architecture

admin
os arch
mentdb
x86_64

os name


Description

    To get the OS name

admin
os name
mentdb
Mac OS X

os type


Description

    To get the OS type

admin
os type
mentdb
Mac OS X

os hostname


Description

    To get the OS hostname

admin
os hostname
mentdb
MacBook-Pro-de-Jimmitry.local

os user_timezone


Description

    To get the OS user timezone

admin
os user_timezone
mentdb
Indian/Reunion

os user_name


Description

    To get the OS user name

admin
os user_name
mentdb
jimmitry

os user_lang


Description

    To get the OS user lang

admin
os user_lang
mentdb
fr

os user_home


Description

    To get the OS user home

admin
os user_home
mentdb
/Users/jimmitry

os user_dir


Description

    To get the OS user dir

admin
os user_dir
mentdb
/Users/jimmitry/Documents/jpayet/INNOV-AI/MENTDB/MentDB_Server

os execute <jsonCmdArray> <minWait>


Description

    To execute command OS

Parameters

    jsonCmdArray:   The json command array - string - required
    minWait:   The min wait to get the result - number - required
admin
os execute "[\"uname\", \"-a\"]" 1000;
mentdb
Darwin MacBook-Pro-de-Jimmitry.local 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64




© 2012 - 2023