DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

SaRunLevel(TCL_ADM)


SaRunLevel: SaRunLevelGet, SaRunLevelIsSingleUser -- determine system run level

Syntax

SaRunLevelGet
SaRunLevelIsSingleUser

Description

SaRunLevelGet- returns run level

SaRunLevelIsSingleUser- determines if system is in single user mode

These interfaces determine the run level of the local host system as defined by init(M) and reported by who(C). The system run level is important for some applications that work differently in different states or may require the services provided by a particular run level. The most useful distinction is likely to be between single and multi-user run levels.


SaRunLevelGet
returns the run level as reported by "who(C) -r".

SaRunLevelIsSingleUser
returns true (1) or false (0) depending on whether or not the system is in single user mode.

See also

init(M), who(C).
16 September 2002
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003