[comp.unix.wizards] "sysline" on SUN or System V?

michael@pbinfo.UUCP (04/17/87)

	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.

		Thanks in advance
		Michael Schmidt

UUCP:  ...!seismo!unido!pbinfo!michael     |  Post: Michael Schmidt
       or michael@pbinfo.UUCP              |        Universitaet-GH Paderborn
                                           |        FB 17 - Informatik
CSNET: michael%pbinfo.uucp@Germany.CSNET   |        Warburger Str. 100
                                           |        D-4790 Paderborn
ARPA:  michael%pbinfo.uucp@seismo.css.gov  |        West Germany

josh@hi.uucp (Josh Siegel ) (04/21/87)

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.
 >
 >		Thanks in advance
 >		Michael Schmidt

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.

I cannot be sure if this is derivitive code since I COULD NOT
have written them on my own if I had not had ps as a reference.
Also,  when I get source, what are my rights then?  I am using
information that I could not have gotten otherwise and making
public code out of it.

Any comments?   

Anybody have a public domain kernel dive model
I can use as a reference so that what I write is public? :-)


-- 
Josh Siegel		(siegel@hc.dspo.gov)
                        (505) 277-2497  (Home)
		I'm a mathematician, not a programmer!

brandon@tdi2.UUCP (Brandon Allbery) (04/23/87)

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)