home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sybus.sybus.com!myrddin!tscs!bailey
- From: bill@bailey.UUCP (Bill Glidden 882-8369)
- Subject: Re: looking for a way to tell a machines current state.
- Newsgroups: comp.unix.programmers,comp.unix.internals
- Date: 15 Aug 92 05:03:07 GMT
- Distribution: world
- Message-ID: <1631227@bailey.UUCP>
- Organization: Ben Bailey's Home..Tampa Fl.
- Sender: news@bailey.UUCP (GNEWS Version 2.0 news poster.)
- Lines: 12
-
- clarkc@IMD.Sterling.COM (Clark Cheney) writes:
- > I am looking for an easy way to tell the State of a machine (single or
- > multiuser) from with in a process.
- >
- > Does anyone now of a subroutine or system call or some file to check.
- >
-
- On some Unix systems, the "who -r" command shows the current run-level.
- You can use this assuming you know the various run-levels and their
- meanings on the system you use it on.
-
-
-