Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!agate!violet.berkeley.edu!edmoy From: edmoy@violet.berkeley.edu Newsgroups: comp.lang.postscript Subject: Re: Sharing an Apple Printer Keywords: postscript printer for sun via a vax Message-ID: <26373@agate.BERKELEY.EDU> Date: 16 Jul 89 19:16:21 GMT References: <741@hutto.UUCP> <58710@linus.UUCP> <26361@agate.BERKELEY.EDU> <25779@shemp.CS.UCLA.EDU> Sender: usenet@agate.BERKELEY.EDU Organization: University of California, Berkeley Lines: 41 In article <25779@shemp.CS.UCLA.EDU> jsin@island.SEAS.UCLA.EDU (John Sin) writes: >We have a Mac II connected via FastPath box (III, I think it is) and the >KIP software to our Unix hosts. I would like to be able to print from >this macintosh to the LaserWriters hooked on to the network as if the >printer is connected to the Mac itself, from within an application. > >To this end, I obtained the CAP package and compiled it on one of our >4.3 BSD Vax. Only program so far that I'm interested in is "lwsrv", >which spools files from the Mac to the LW. > >I have been successful in getting the files to spool correctly to the >printer. I can see the file sitting in the queue, and the yellow light on >the printer blinks as if it would print. However, after a while, the blinking >stops and nothing comes out of the printer. > >I suspect the problem is in getting the correct Dictionary file which lwsrv >prepends to the file. There is a README file for lwsrv which says that it >will capture the AppleDict the first time, and that I have to modify it to >eliminate codes for "stretch" and "smooth". I did all that and still nothing. There is a set of programs I wrote, call macps and prepfix, that will solve your problem. Prepfix takes a Command-K PostScript file and munges it to works with macps (and also lwsrv). Macps takes a Command-F PostScript file and prepends the appropriate modified LaserPrep file and sends the result to the standard output (much like what lwsrv does), which would typically be a pipe to an lpr command. Macps are for those who have Macs not connected directly to a network (like mine at home) and who would like to print to a PostScript printer that is available from a Unix machine. Anyways, enough commercial. Prepfix can be used to generate the appropriate LaserPrep files for use with lwsrv. It (along with macps) is available via anonymous ftp from sumex-aim.stanford.edu in the info-mac/unix directory. It was also posted to comp.sources.unix and comp.sources.mac recently. Edward Moy Principal Programmer - Macintosh & Unix Workstation Support Services Workstation Software Support Group University of California Berkeley, CA 94720 edmoy@violet.Berkeley.EDU ucbvax!violet!edmoy