Current Run-Level: How can you tell?
Dick Dunn
rcd at ico.isc.com
Fri Apr 26 03:29:29 AEST 1991
dag at fciva.FRANKCAP.COM (Daniel A. Graifer) writes:
> It may depend on your version of unix, but in my port of SysV 3.1.2
> "who -r" reports various things about init including the current run
> level...
This is a dependable SysVism.
> I don't know how you would do it from 'c'.
See utmp.h. If the ut_type field is RUN_LVL, the string "run-level n"
where n is the current run level, is in the ut_line field.
--
Dick Dunn rcd at ico.isc.com -or- ico!rcd Boulder, CO (303)449-2870
...While you were reading this, Motif grew by another kilobyte.
More information about the Comp.unix.sysv386
mailing list