home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume2 / 3b1-status-line / ReadMe < prev    next >
Encoding:
Text File  |  1991-08-07  |  3.4 KB  |  69 lines

  1.  
  2. ReadMe for 9 Jan 1988 version of startmgr and newmgr
  3.  
  4. These two programs implement a replacement for smgr, wmgr and ph.  They don't
  5. do the cron stuff; use cron for that.  They don't do mail, and I don't care,
  6. because I don't use /bin/mail anyway.  Likewise, they know nothing about
  7. calendars or memos.  Additionally, the wmgr function doesn't bring up a menu;
  8. it just switches you between windows.
  9.  
  10. What startmgr does is start newmgr.  It starts it in a window across the
  11. top of the screen, in the places where the Phone Manager, the Status Manager
  12. and the Window Manager live (I don't use the PM either...).  It then returns,
  13. so all you need to do is startmgr.  It probably can be turned into a fairly
  14. general process starter, but I don't have the time, what with all of the
  15. stuff that I've got piled up to look at.
  16.  
  17. Newmgr is just a forever loop that displays some status information to
  18. stdout and peeks at the Suspend, Resume Shift-Print and Shift-Function Keys.
  19. The Shift-Function keys display all sorts of additional status information;
  20. since I use UUCP a lot, four of the keys show UUCP-related information (LCK,
  21. C. and D.  files and all of /usr/spool/uucp) and the other four show process
  22. status, utmp information, the mail directory, and root disk stats.  Feel free
  23. to hack it; I just put up what I could think of that's interesting to me.  Load
  24. averages would be nice, but I couldn't find any obvious hooks in /unix for that.
  25.  
  26. Compiling:  just type make.  Use make install to move the executables to the
  27. default locations.  Modify the Makefile and the #define BARPROG for your site.
  28. I use the ndir stuff (I got it from News, I don't know who did it originally)
  29. to do directory scanning; it should be in the distribution.
  30.  
  31. How to use:  startmgr goes in /etc/daemons and newmgr goes into your
  32. local executable directory (change a #define in startmgr if you don't
  33. use /usr/local).  You've then either got to change /etc/rc (so it doesn't
  34. start smgr,wmgr and ph) or put a script in /etc/daemons to kill them off.
  35. If you don't know about /etc/rc and /etc/daemons, maybe you shouldn't
  36. be doing this... :-)
  37.  
  38. Use the Shift-Print key to display the list of key mappings, once the program
  39. is started.
  40.  
  41. Optionally, you *can* run startmgr by hand; I did for testing.  The only
  42. thing to note here is that your current window winds up being the one
  43. that startmgr creates for the status line; I couldn't find a way to say,
  44. "make the last window the current one."; or at least, one that I could get
  45. to work in 5 minutes...  To get back to your normal window, just use
  46. Suspend/Resume.
  47.  
  48. Known bugs:  Every once in a while, like if you log out *just* as the display
  49. is updating, it gets confused as to what window you're really in.  It has even
  50. been known to display "w-1" (who me, check for errors on a system call?).
  51. Also, the process status feature probably could find a better way to determine
  52. a process's controlling terminal; it has a tendency to come up with things
  53. like /dev/null.
  54.  
  55. Potential bugs:  Pretty much all of the extended-status routines are
  56. implemented without any error-checking...
  57.  
  58. Last note:  this stuff is copyrighted with free redistribution permitted.
  59. I don't really think that this is the sort of thing that needs or warrants
  60. scads of support, so I'm not promising to do so; however, I would like to
  61. see any changes that anyone makes.
  62.  
  63. Comments welcome, as long as they are other than, "What kind of idiot
  64. runs without smgr, wmgr and ph?"
  65.  
  66.      \scott
  67.      9 Jan 1988
  68.  
  69.