Current Run-Level: How can you tell?
Ernie Englehart
ege at cbnews.cb.att.com
Thu Apr 25 01:06:45 AEST 1991
In article <1991Apr23.024433.10460 at srwic.UUCP> sralston at 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!!! |
More information about the Comp.unix.questions
mailing list