home *** CD-ROM | disk | FTP | other *** search
-
- ReadMe for 9 Jan 1988 version of startmgr and newmgr
-
- These two programs implement a replacement for smgr, wmgr and ph. 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, Resume Shift-Print and Shift-Function Keys.
- The Shift-Function keys display all sorts of additional status information;
- since I use UUCP a lot, four of the keys show UUCP-related information (LCK,
- C. and D. files and all of /usr/spool/uucp) and the other four show process
- status, utmp information, the mail directory, and root disk stats. 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: just type make. Use make install to move the executables to the
- default locations. Modify the Makefile and the #define BARPROG for your site.
- I use the ndir stuff (I got it from News, I don't know who did it originally)
- to do directory scanning; it should be in the distribution.
-
- 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... :-)
-
- Use the Shift-Print key to display the list of key mappings, once the program
- is started.
-
- 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: 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?).
- Also, the process status feature probably could find a better way to determine
- a process's controlling terminal; it has a tendency to come up with things
- like /dev/null.
-
- Potential bugs: Pretty much all of the extended-status routines are
- implemented without any error-checking...
-
- 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
- 9 Jan 1988
-
-