Article View: comp.unix.programmers
Article #2Re: looking for a way to tell a machines current state.
From: Bill Glidden 882-8369
Date: Sat, 15 Aug 1992 05:03
Date: Sat, 15 Aug 1992 05:03
10 lines
854 bytes
854 bytes
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.
Technical Details
Message-ID:
<1631227@bailey.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!sybus.sybus.com!myrddin!tscs!baileyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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