Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcvax!mhres!jv From: jv@mhres.mh.nl (Johan Vromans) Newsgroups: comp.unix.questions Subject: Re: Command to obtain current run level? Message-ID: <1183@mhres.mh.nl> Date: Wed, 5-Aug-87 03:30:22 EDT Article-I.D.: mhres.1183 Posted: Wed Aug 5 03:30:22 1987 Date-Received: Fri, 7-Aug-87 07:02:01 EDT References: <241@acich.UUCP> Organization: Multihouse NV, the Netherlands Lines: 19 Keywords: run level Summary: who does it In article <241@acich.UUCP>, steve@acich.UUCP (Steve Westfall) writes: > Is there a shell command (or a system call) in System V UNIX that > will return the value of the current run state? I would like to use > such a feature in some administrative shell scripts on our system. Try "who -r". It should return a line like " . system boot Jul 20 14:34 2 0 S" ^ ^ ^ CRL # PRV with CRL current run level, # the #st time this run level is invoked, and PRV the previous run level. -- Johan Vromans | jv@mh.nl via mcvax and seismo Multihouse N.V., Gouda, the Netherlands | uucp: ..{seismo!}mcvax!mh.nl!jv "It is better to light a candle than to curse the darkness"