Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!cbatt!cwruecmp!hal!ncoast!tdi2!brandon From: brandon@tdi2.UUCP (Brandon Allbery) Newsgroups: comp.unix.wizards Subject: Re: "sysline" on SUN or System V? - (nf) Message-ID: <346@tdi2.UUCP> Date: Thu, 23-Apr-87 11:17:38 EDT Article-I.D.: tdi2.346 Posted: Thu Apr 23 11:17:38 1987 Date-Received: Wed, 29-Apr-87 06:57:27 EDT References: <51200001@pbinfo.UUCP > <4795@hi.uucp> Reply-To: brandon@tdi2.UUCP (Brandon Allbery) Followup-To: comp.unix.wizards Organization: Tridelta Industries, Inc., Mentor, Ohio Lines: 46 Quoted from <4795@hi.uucp> ["Re: "sysline" on SUN or System V? - (nf)"], by josh@hi.uucp (Josh Siegel )... +--------------- | In article <51200001@pbinfo.UUCP > michael@pbinfo.UUCP writes: | > Has anybody a Berkeley style "sysline" for SUN and for System V. | > If yes and s/he is willing to share, I would appreciate a | > copy very much. | | One of the problems with "sysline" and the whole "ps" type | of software is that at some point some guru wrote ps and "almost" everybody | has been using his/her code ever since. I have several programs | that all started their lives by myself digging through ps. +--------------- After the sources groups settle down, I'll post a status line program I have, plus a System V version of `w'. (The latter has a few problems: (1) it only does load averages if you have the load average daemon I posted earlier [I will repost it], this requires shared memory; (2) I haven't the faintest what JCPU and PCPU are (I worked from an example w output, not a man page or live code), so what my program does is almost certainly wrong.) Since we are not a source site, none of them are based on UN*X source. (None of them look up the actual arguments to a command, either; I *do* have limits to how far I can mindread the kernel! :-) Unfortunately, none of them are Berkeley sysline, since I don't know what that program does. An example of my status line is: (imagine this on your status line) ------------------------------------------------------------------------------- jove brandon load: 0.78 0.55 0.34 No msgs Thu 04/23 11:11 ------------------------------------------------------------------------------- current program username load average mail date/time (needs avenrun daemon) It also shows sender and subject of new mail as it arrives, and also scans an event file (~/.alarm) and displays messages from it when a time, date/time, or weekday/time matches. It uses terminfo (could use termcap, but the process table/ublock stuff won't work under BSD UN*X anyway, so why bother?). ++Brando -- Brandon S. Allbery UUCP: cbatt!cwruecmp!ncoast!tdi2!brandon Tridelta Industries, Inc. CSNET: ncoast!allbery@Case 7350 Corporate Blvd. INTERNET: ncoast!allbery%Case.CSNET@relay.CS.NET Mentor, Ohio 44060 PHONE: +1 216 255 1080 (home +1 216 974 9210)