Xref: utzoo comp.unix.questions:30687 comp.unix.misc:1347 comp.unix.sysv386:7249 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!linac!att!cbnews!ege From: ege@cbnews.cb.att.com (Ernie Englehart) Newsgroups: comp.unix.questions,comp.unix.misc,comp.unix.sysv386 Subject: Re: Current Run-Level: How can you tell? Summary: who -r Keywords: init run level Message-ID: <1991Apr24.150645.1135@cbnews.cb.att.com> Date: 24 Apr 91 15:06:45 GMT References: <1991Apr23.024433.10460@srwic.UUCP> Organization: AT&T Network Systems-OSTC Lines: 19 In article <1991Apr23.024433.10460@srwic.UUCP> sralston@srwic.UUCP (Steve Ralston) writes: =Sorry as I'm sure this is a FAQ or RTFM question, but, I've looked quite =a few places and can't find a way to tell what the current run level of =a Unix system is (i.e. "init" level). = =I am most interested in a solution that is portable, can be performed inside =a C program, or ANY OTHER method you can come up with; in about that order =of precedence. The command "who -r" does the trick. >As always, thanks in advance! You're welcome. -- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | Ernie Englehart AT&T Network Systems Columbus, Ohio | | att!cbnmva!ege | | GO OHIO STATE BUCKEYES!!! |