home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / internal / 1694 < prev    next >
Encoding:
Internet Message Format  |  1992-08-15  |  835 b 

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