home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************/
- /* Copyright 1988 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. */
- /************************************************************************/
-
-
- Lpqtool is a windowed version of lpq. It will periodically poll the
- print queue (using lpq) and display the results in a little window. You can
- adjust the polling rate to suit yourself. Lpqtool has two rates: one for an
- active queue (with jobs in it) and another for an idle (empty) queue.
- Normally, it polls an active queue more rapidly than an idle queue, to deliver
- up to the minute information about the state of the queue. Lpqtool can also
- be configured (via command line options) to close when the queue is idle,
- and pop open when it becomes active. This is handy, because you can pop it
- open when you submit a job, and it will watch the queue until it becomes
- empty, and then it will go away. See the man page for all the details.
-
- Installing lpqtool is easy. You'll need to check the Makefile and
- lpqtool.c to make sure some pathnames and such are correct. These items
- are:
-
- In Makefile:
- BINDIR 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'.
-
- In lpqtool.c
- LPQ The full pathname of the lpq command on
- your system. Normally, this is
- /usr/ucb/lpq. You may have it in a
- different place, or might use a different
- queue display command. Be warned: lpqtool
- depends on the format of the output of lpq,
- so other commands may not work right.
- ICON_PATH Where the laserwriter icon can be found.
- Normally, it is in the directory that you
- created lpqtool in, but you might want to move
- it to a more global place. We keep all our
- icons in /usr/local/images, for example.
- Fix this path to match where you put the icon.
- NORMAL_FONT
- BOLD_FONT Point to the fonts used by lpqtool, which should
- be in the standard Sun font place,
- /usr/lib/fonts/fixedwidthfonts. If you have moved
- them, fix up these paths. You should always use
- screen.r.14 and screen.b.14, since lpqtool depends
- on the font widths to make its windows look good.
-
- Everything else is system independent. Just type "make lpqtool" or "make install"
- and give it a whirl!
-
- Comments, bugs, to me, please. I would be very interested in your impressions
- of lpqtool 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
- (407) 727-6131
- ARPA: chuck@trantor.harris-atd.com
-