Current Run-Level: How can you tell?

Paul Slootman slootman at dri.nl
Fri Apr 26 00:30:59 AEST 1991


In article <z.8Goc1y1 at cs.psu.edu> schwartz at groucho.cs.psu.edu (Scott Schwartz) writes:
>
>Ernie Englehart writes:
>| The command "who -r" does the trick.
>
>Bizarre.  Why stick that in the "who" command?  I guess "cat" and "ls"
>have too many options and "who" needed some... :-)

who (at least on the System V machine I know) reads /etc/utmp (or some
similar file if you specify it). Amongst other things, the run level
is stored in /etc/utmp.
With "who -a" you get every entry in the utmp file....

Paul.
-- 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
: slootman at dri.nl           : You are wise, witty and wonderful, but you      :
: ...!hp4nl!dri500!slootman : spend too much time reading this sort of trash. :
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



More information about the Comp.unix.sysv386 mailing list