home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume1
/
8711
/
3
/
ReadMe
< prev
next >
Wrap
Text File
|
1990-07-13
|
3KB
|
56 lines
ReadMe for startmgr and newmgr
These two programs implement a very minimal replacement for smgr and wmgr.
They don't do the cron stuff; use cron for that. They don't do mail, and I
don't care, because I don't use /bin/mail anyway. Likewise, they know
nothing about calendars or memos. Additionally, the wmgr function doesn't
bring up a menu; it just switches you between windows.
What startmgr does is start newmgr. It starts it in a window across the
top of the screen, in the places where the Phone Manager, the Status Manager
and the Window Manager live (I don't use the PM either...). It then returns,
so all you need to do is startmgr. It probably can be turned into a fairly
general process starter, but I don't have the time, what with all of the
stuff that I've got piled up to look at.
Newmgr is just a forever loop that displays some status information to
stdout and peeks at the Suspend and Resume keys. You could run it off of the
command line, but it's not very exciting and there's no way to win. Feel free
to hack it; I just put up what I could think of that's interesting to me.
Load averages would be nice, but I couldn't find any obvious hooks in /unix
for that.
Compiling: all I do is type "make startmgr" and "make newmgr". Make
has default rules for *.c files, after all. Stripping wouldn't hurt.
How to use: startmgr goes in /etc/daemons and newmgr goes into your
local executable directory (change a #define in startmgr if you don't
use /usr/local). You've then either got to change /etc/rc (so it doesn't
start smgr,wmgr and ph) or put a script in /etc/daemons to kill them off.
If you don't know about /etc/rc and /etc/daemons, maybe you shouldn't
be doing this... :-)
Optionally, you *can* run startmgr by hand; I did for testing. The only
thing to note here is that your current window winds up being the one
that startmgr creates for the status line; I couldn't find a way to say,
"make the last window the current one."; or at least, one that I could get
to work in 5 minutes... To get back to your normal window, just use
Suspend/Resume.
Known bugs: Yes, one. Every once in a while, like if you log out *just* as
the display is updating, it gets confused as to what window you're really in.
It has even been known to display "w-1" (who me, check for errors on a system
call?). Other than that, I don't know of any, but I haven't pushed it too
hard.
Last note: this stuff is copyrighted with free redistribution permitted.
I don't really think that this is the sort of thing that needs or warrants
scads of support, so I'm not promising to do so; however, I would like to
see any changes that anyone makes.
Comments welcome, as long as they are other than, "What kind of idiot
runs without smgr, wmgr and ph?"
\scott