Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!cwruecmp!hal!ncoast!tdi2!brandon From: brandon@tdi2.UUCP Newsgroups: comp.unix.wizards Subject: Re: System V lp setup Message-ID: <150@tdi2.UUCP> Date: Thu, 19-Mar-87 21:09:05 EST Article-I.D.: tdi2.150 Posted: Thu Mar 19 21:09:05 1987 Date-Received: Sun, 22-Mar-87 21:45:07 EST References: <343@gssc.UUCP> <219@polyof.UUCP> Reply-To: brandon@tdi2.UUCP (Brandon Allbery) Followup-To: comp.unix.wizards Distribution: comp.unix.wizards Organization: Tridelta Industries, Inc., Mentor, OH Lines: 63 Quoted from <219@polyof.UUCP> ["Re: System V lp setup"], by john@polyof.UUCP... +--------------- | In article <343@gssc.UUCP>, jdm@gssc.UUCP writes: | > i hereby cuss and swear vehemently at the UNIX System V (read 3B2) lp setup. | > when trying to bring up a new printer (a laserwriter) one cannot write a new | > model and stuff it in the .../lp/model directory and specify it as a new | > model. it seems as though lpadmin is HARD CODED to a handful of not very | > useful model types. | > -- jdm | | Granted, the '-m' option may not be what YOU want. We configured several | special printers, none of which matched the given models; you must use | the '-i' option. (LPADMIN(1M)). For example, | $ /usr/lib/lpadmin -plaser -v/dev/tty10 -i/usr/spool/lp/model/MYLASER_MODEL +--------------- I have the same complaint. Certainly you can use -i -- but which is easier to type? I now use -e since I use a generic model program written in C and driven off a pcap file; also looking up config information in a config file for each printer, to control banners, special forms, etc. (The major difference between my setup and printcap is that mine uses arrays: # # PCap for Radio Shack LMP-2150 using lpVdriver under System V spooler # lmp2150: print-modes = 5, print-mode = <"80", "96", "132", "wp", "corr">, width = <80, 101, 132, 80, 80>, RS-backspace, RS-bs-width = <12, 12, 12, 20, 20>, reset = "\E^T^S", default-mode = 2, set-mode = <"\E^S^S", "\E^W^S", "\E^T^S", "\E^R^T", "\E^R^S">, no-formfeed. Thus, adding new print modes doesn't take a rewrite of the model program, it just uses "print-modes" as the maximum index and gets the right mode by checking its mode argument (passed with -o: -owp) against the array print-mode. (RS-backspace is due to the fact that the LMP backspaces by the number of dots specified in the next character: ^H^L is an 80-column (normal mode) backspace.) Since I always use this model, I just specify -e(name of existing printer) to install a new printer with this model. But I would prefer to use -mlpVdriver instead. ++Brandon -- ``for is he not of the Children of Luthien? Never shall that line fail, though the years may lengthen beyond count.'' --J. R. R. Tolkien Brandon S. Allbery UUCP: cbatt!cwruecmp!ncoast!tdi2!brandon Tridelta Industries, Inc. CSNET: ncoast!allbery@Case 7350 Corporate Blvd. INTERNET: ncoast!allbery%Case.CSNET@relay.CS.NET Mentor, Ohio 44060 PHONE: +1 216 255 1080 (home) +1 216 974 9210