home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!ucbvax!ascent-west.UUCP!erict
- From: erict@ascent-west.UUCP (Eric Tiffany)
- Newsgroups: comp.protocols.appletalk
- Subject: Re: Getting rid offending postcript (lwsrv -e)?
- Message-ID: <9208192214.AA02835@ascent-west.UUCP>
- Date: 19 Aug 92 22:14:15 GMT
- References: <1992Aug19.145814.8443@magnus.acs.ohio-state.edu>
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 46
-
- I tried to post a solution to this very problem earlier today, but it
- was buried at the end of something else so I will repeat it.
-
- The System 7 LaserWriter driver spews the randomness you are having
- trouble with. This is passed through the lwsrv because you started it
- with the -N flag. This croaks my printer, too. So, I simply
- interject a pipeline where the output filter goes in the printcap.
- Part of that pipeline is a call to a sed script:
-
- /^%!PS-Adobe-2.0 Query/,/\*EOF\*/d
- /^%!PS-Adobe-2.0 ExitServer/,/\*EOF\*/d
-
- This will remove the offending crap from the front of your PostScript
- jobs. Here is my printcap entry:
-
- nec|lp|lw|postscript|PostScript:\
- :lf=/usr/spool/nec/nec-log:\
- :df=/usr/local/lib/ps/dvips:\
- :lp=/dev/ttyc:sd=/usr/spool/nec:\
- :br#38400:mx#0:sf:sh:\
- :ms=-cstopb,-clocal,cs8,parenb,-parodd,-opost,ixon:\
- :rw:\
- :of=/usr/local/etc/textps.sh:
-
- and here is the textps.sh:
-
- #!/bin/sh
- #
- sed -f /usr/local/lib/ps/mac.sed | /usr/local/lib/ps/textps -fp
-
- You would substitute your Transcript output filter (or whatever is in
- your printcap for the :of= entry) for the call to my textps program.
-
- Hope this helps
-
- ET
- ________________________________________________________________________
- / / \ / / /
- / Eric Tiffany / / \<_ / _|\\/ / Ascent Technology /
- / 312 Briarcliff Drive So. / /\\ \ /\ /\\ \\// 64 Sidney Street /
- / Ossining, NY 10562 / \\/\\/ /\ \ \\ \\ / Cambridge, MA 02139 /
- / (914) 944-9003 / \/\\ \/\ \/\\/ / (617) 225-0850 /
- /__________________________/___\_______\____\_____/_____________________/
- ascent!erict@uunet.uu.net
- ...!uunet!ascent!erict
-
-