home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / unix / volume23 / mlpd / README < prev   
Text File  |  1991-01-08  |  4KB  |  91 lines

  1. /*
  2.  * Copyright (c) 1990 Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution and use in source and binary forms are permitted
  6.  * provided that the above copyright notice and this paragraph are
  7.  * duplicated in all such forms and that any documentation,
  8.  * advertising materials, and other materials related to such
  9.  * distribution and use acknowledge that the software was developed
  10.  * by the University of California, Riverside. 
  11.  *
  12.  * NOTE : That's Riverside.  Not Berkeley, not Santa Cruz, not even
  13.  *        Irvine.  Riverside.  Ri - ver - side.
  14.  *
  15.  * The name of the University may not be used to endorse or promote 
  16.  * products derived from this software without specific prior written
  17.  * permission.
  18.  *
  19.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
  20.  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  21.  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  22.  * 
  23.  * MLPD -- Multiple Line Printer Daemon (Version 1.3)
  24.  * SCCS keywords: @(#)README    1.3 12/1/90
  25.  */
  26.  
  27. NOTE:  This program is in its first testing stages.  If I send it out,
  28.        and people like it, I'll post it to the USENET network.  If
  29.        not, I'll just put it on a resume.  This is the first version,
  30.        and I have already started working on a new version that has
  31.        many more features, all that remain very simplistic to the
  32.        user, which is my main objective.
  33.  
  34.  
  35. Now on with the real important stuff:
  36.  
  37.  
  38. This program (MLPD) is a little piece of code I wrote to use a single
  39. printer queue for a set of multiple printers.  It's kind of wierd to
  40. set up, but once it is running, it should help out a lot.
  41.  
  42. Here are the steps for a clean configuration, in proper order :
  43. ---------------------------------------------------------------
  44.  
  45. 1.  Edit Makefile to your particular system and needs.  If you are running
  46.     under a SunOS environment, you need to define -DSUN, and if you want
  47.     to print out hari-kari debug messages, you need to specify -DDEBUG.
  48.  
  49. 2.  Compile the program, or get it operational. (Whichever comes first.)
  50.  
  51. 3.  Turn off the printing to the base printer that your employees, friends,
  52.     or students print to, and turn off queueing on the other printers.  For
  53.     example, 'lp' is your base printer (Where most people type in 'lpr'),
  54.     and your other printers are the real printers that will be doing the
  55.     actual printing (like 'lp1', 'lp2', etc.)
  56.  
  57. 4.  Make sure all of the printers are properly set up in the /etc/printcap
  58.     so that the printers can run smoothly.  Make sure that your main
  59.     printer ('lp' is your main printer, from #3.) doesn't do any printing
  60.     and that your other printers area actually connected to the devices.
  61.  
  62. 5.  Try it out!  The command to start off the program is :
  63.  
  64.     mlpd -p [<base printer> <printer1> <printer2> ...] [-t <timeout>]
  65.  
  66.     For example, a command line following #3 and #4 would be:
  67.  
  68.     mlpd -p lp lp1 lp2 -t 5
  69.  
  70.     In this example, the main queueing printer is lp, the other printers
  71.     are lp1 and lp2, and the timeout to check for a print job is 5 seconds.
  72.  
  73. 6.  If it works, try to set it up in your rc.local to start up when you 
  74.     start up your system.  Make sure, however, that you put the mlpd entry
  75.     after starting up lpd.  Otherwise, mlpd will not function.
  76.  
  77. The program runs under a Sun OS environment.  It has been tried out
  78. under 4.1 SunOS, and I had it tried out under a 4.3 BSD environment,
  79. thanks to the help of nash@ucselx.sdsu.edu (Thanks, Ron!) I hope that 
  80. it works for you.  Please send me all bug reports, special things that
  81. would make your life easier, etc., so on, so forth.  If you do have any
  82. questions at all, please mail me to let me know about what you need.
  83. I'll be out with a manual page soon enough.  (Gotta learn a bit about
  84. nroff...Too much TeX and LaTeX.)
  85.  
  86. --Matt
  87.  
  88. ____________________________________________________________________________
  89. Matt D. Robinson                            Internet: yakker@ucrmath.ucr.edu
  90. Systems Programming Group, UC Riverside         UUCP: ..!ucsd!ucrmath!yakker
  91.