home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / protocol / appletal / 3137 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.2 KB

  1. Path: sparky!uunet!stanford.edu!agate!ucbvax!ascent-west.UUCP!erict
  2. From: erict@ascent-west.UUCP (Eric Tiffany)
  3. Newsgroups: comp.protocols.appletalk
  4. Subject: Re: Getting rid offending postcript (lwsrv -e)?
  5. Message-ID: <9208192214.AA02835@ascent-west.UUCP>
  6. Date: 19 Aug 92 22:14:15 GMT
  7. References: <1992Aug19.145814.8443@magnus.acs.ohio-state.edu>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Distribution: world
  10. Organization: The Internet
  11. Lines: 46
  12.  
  13. I tried to post a solution to this very problem earlier today, but it
  14. was buried at the end of something else so I will repeat it.  
  15.  
  16. The System 7 LaserWriter driver spews the randomness you are having
  17. trouble with.  This is passed through the lwsrv because you started it
  18. with the -N flag.  This croaks my printer, too.  So, I simply
  19. interject a pipeline where the output filter goes in the printcap.
  20. Part of that pipeline is a call to a sed script:
  21.  
  22. /^%!PS-Adobe-2.0 Query/,/\*EOF\*/d
  23. /^%!PS-Adobe-2.0 ExitServer/,/\*EOF\*/d
  24.  
  25. This will remove the offending crap from the front of your PostScript
  26. jobs.  Here is my printcap entry:
  27.  
  28. nec|lp|lw|postscript|PostScript:\
  29.         :lf=/usr/spool/nec/nec-log:\
  30.         :df=/usr/local/lib/ps/dvips:\
  31.     :lp=/dev/ttyc:sd=/usr/spool/nec:\
  32.     :br#38400:mx#0:sf:sh:\
  33.     :ms=-cstopb,-clocal,cs8,parenb,-parodd,-opost,ixon:\
  34.     :rw:\
  35.     :of=/usr/local/etc/textps.sh:
  36.  
  37. and here is the textps.sh:
  38.  
  39. #!/bin/sh
  40. #
  41. sed -f /usr/local/lib/ps/mac.sed | /usr/local/lib/ps/textps -fp
  42.  
  43. You would substitute your Transcript output filter (or whatever is in
  44. your printcap for the :of= entry) for the call to my textps program.
  45.  
  46. Hope this helps
  47.  
  48. ET
  49.       ________________________________________________________________________
  50.      /                          /    \            /    /                     /
  51.     / Eric Tiffany             /  / \<_  /     _|\\/  /   Ascent Technology /
  52.    / 312 Briarcliff Drive So. / /\\  \  /\   /\\  \\//    64 Sidney Street / 
  53.   / Ossining, NY  10562      / \\/\\/ /\  \ \\ \\   / Cambridge, MA 02139 /  
  54.  / (914) 944-9003           / \/\\    \/\  \/\\/   /      (617) 225-0850 /   
  55. /__________________________/___\_______\____\_____/_____________________/    
  56.                       ascent!erict@uunet.uu.net
  57.                       ...!uunet!ascent!erict
  58.  
  59.