home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
x
/
volume10
/
contool
/
part01
/
README
< prev
next >
Wrap
Text File
|
1990-10-30
|
7KB
|
174 lines
/************************************************************************/
/* Copyright 1988-1990 by Chuck Musciano and Harris Corporation */
/* */
/* Permission to use, copy, modify, and distribute this software */
/* and its documentation for any purpose and without fee is */
/* hereby granted, provided that the above copyright notice */
/* appear in all copies and that both that copyright notice and */
/* this permission notice appear in supporting documentation, and */
/* that the name of Chuck Musciano and Harris Corporation not be */
/* used in advertising or publicity pertaining to distribution */
/* of the software without specific, written prior permission. */
/* Chuck Musciano and Harris Corporation make no representations */
/* about the suitability of this software for any purpose. It is */
/* provided "as is" without express or implied warranty. This */
/* software may not be sold without the prior explicit permission */
/* of Harris Corporation. */
/************************************************************************/
Contool Version 3.0
Contool will capture and display system console messages with timestamps.
It is a replacement for the standard Sun console, which is created with
"cmdtool -C". Contool will flash its icon and beep when messages are written
to the icon, so you can keep it closed on your desktop until a message arrives.
You can modify this beeping and flashing behavior; see the man page for more
details.
You can instruct contool to filter and ignore certain common console
messages. The man page explains how to create a file of filters in
~/.contool; the included sample.filter is how my filters are set up. You
can modify this to suit yourself, and copy it to ~/.contool.
This version of contool will only work with Open Windows 2.0, from Sun,
or the XView 2.0 libraries available via anonymous FTP from expo.lcs.mit.edu.
In either case, obviously, you'll need to be running some version of X Windows.
There are no plans to produce a SunView version of contool 3.0.
Before building contool, you need to check several site dependencies
in the Makefile. These dependencies are:
In Makefile:
BIN Where the executable will go, normally
/usr/local/bin
MANDIR Where the man page will go, normally
/usr/man/manl
MANEXT The man page extension, usually 'l',
for local man pages. You may want to
make MANDIR /usr/man/man1, in which case
MANEXT should be '1'.
HELPDIR Where the context-sensitive help file
will be stored.
ICON_PATH Path to search (at runtime) for other
icon files. This path will only be used
if the user does not have the ICON_PATH
environment variable defined. Should
consist of a various directories
separated by colons.
OPENWINHOME Where you installed Open Windows.
Alternately, where you installed the
XView toolkit shipped with X11R4. Must
be a directory with a child directory
named "include" which contains X and
XView include files.
LDFLAGS Where ld can find your XView libraries.
If you compile with Open Windows, the
default value should be correct. If you
are using the X11 XView libraries, you
may need to modify this value.
CPPFLAGS Where cpp can find your XView include
files. If you compile with Open Windows,
the default value should be correct. If
you are using the X11 XView toolkit, you
may need to modify this value.
Once you have adjusted these values, just type "make contool" or "make
install".
Contool honors window command line options, described in xview(1),
so you can change the default window size, icon position, etc. We like
to bring contool up closed, using "-Wi".
Comments, bugs, to me, please. I would be very interested in your
impressions of contool and any suggestions you might have to make it better.
By the way, there are a few convenient untility routines in misc.c you might
find useful in other programs you are writing.
Chuck Musciano
Advanced Technology Department
Harris Corporation
PO Box 37, MS 3A/1912
Melbourne, FL 32902
(407) 727-6131
ARPA: chuck@trantor.harris-atd.com
******************************** KNOWN XVIEW BUG ********************************
* *
* It is a known bug in XView that if you bring up a dialog box with the *
* pushpin out (the default) and display a menu without selecting an item from *
* the menu, the dialog box will be closed. This can be demonstrated in contool *
* by bringing up the edit filters window, and displaying the "edit" menu *
* without selecting an action. *
* *
* This bug has been reported to Sun, but will not be fixed until version *
* 3.0 of XView. *
* *
*********************************************************************************
*********************************************************************************
* Change history *
*********************************************************************************
1.0 20 Jun 88 Original release
1.1 30 Jun 88 Added -p option to pop open when messages
arrive. Suggested by Doug Lind
(lind@perron.ms.washington.edu).
Added alternate icon sets for more attractive
appearance when messages arrive. Alternate
set two is from David Eckelcamp
(eckelcamp@mcc.com).
Cleaned up Makefile. Again, courtesy of
David Eckelcamp.
2.0 23 Aug 88 Added automatic reload of filters when
filter file is modified. Suggested by
Craig Musicant (cmusican@stanford.prime.com).
Filter strings are now regular expressions.
Provided by jqj@hogg.cc.uoregon.edu.
Reworked frame menu, based upon diffs posted
to sun-source@titan.rice.edu.
Added protection from overflowing the text edit
window when too many messages arrive.
Filters can now be read from any file, not
just ~/.contool.
2.1 10 Feb 89 Added logging capability, courtesy of
Gregory Bond (gnb@melba.bby.oz.au).
2.2 19 Sep 89 Added filter editing.
Added icon pathname completion, courtesy of
Mike Arms (sandia!marms@unmvax.cs.unm.edu).
Added moving the blinking icon to the front,
courtesy of Peter Lennevi
(etxlevi@solsta.ericsson.se).
Changed icon loading to use ICON_PATH, and
supported ~ expansion, suggested by
Larry Virden (osu-cis!chemabs!lwv27).
Fixed multiple message alert handling,
as suggested by Ellery Chan
(ellery@trantor.harris-atd.com).
3.0 6 Jun 90 Ported to XView toolkit, running under
Open Windows 2.0.
Reworked interface to be OPEN LOOK
compliant.
Added saving of default actions to
filter file.
Removed large number of command line
options in lieu of properties
dialog box.
Added ability to associate a command
to be executed when a message arrives.
Added explicit filter reset capability.
Added the ability to print the contents
of the console. Suggested by
Danielle Heinzer
(ESC1298%ESOC.BITNET@cunyvm.cuny.edu).
Reworked console overflow handling,
courtesy of Matt Cohen
(sysnmc@magic706.chron.com).