home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / sun / misc / 3948 < prev    next >
Encoding:
Text File  |  1992-08-26  |  1.1 KB  |  36 lines

  1. Newsgroups: comp.sys.sun.misc
  2. Path: sparky!uunet!decwrl!access.usask.ca!ccu.umanitoba.ca!mills
  3. From: mills@ccu.umanitoba.ca (Gary Mills)
  4. Subject: Re: Help! Problem with Postscript printer
  5. Message-ID: <1992Aug27.021120.11449@ccu.umanitoba.ca>
  6. Organization: University of Manitoba, Winnipeg, Canada
  7. References: <1992Aug21.233430.20143@usenet.ins.cwru.edu> <17grpsINN3t8@sixgun.East.Sun.COM>
  8. Date: Thu, 27 Aug 1992 02:11:20 GMT
  9. Lines: 25
  10.  
  11. In <17grpsINN3t8@sixgun.East.Sun.COM> matthew@sun.com (Matthew Stier - Sun NC Development Center) writes:
  12.  
  13. >In article 20143@usenet.ins.cwru.edu, ramesh@veda (Ramesh Doddamani) writes:
  14. >> Is there a way to overcome this? Has anybody come across this problem? If we  
  15. >> have a filter that changes "%!" to "%!PS-Adobe3.0" will it work? I would  
  16. >> appreciate if anybody has a solution for this.
  17. >> 
  18.  
  19. >Here is some pseudo-code.
  20.  
  21. >first_line = 1;
  22. >while ( read_input != eof ) {
  23. >    if (first_line) {
  24. >        write "%!PS-Adobe3.0"
  25. >        first_line = 0;
  26. >    }
  27. >    write input_line
  28. >}
  29.  
  30. Here is some shell:
  31.  
  32. #!/bin/sh
  33. echo "%!PS-Adobe3.0"; cat
  34. -- 
  35. -Gary Mills-         -Networking Group-          -U of M Computer Services-
  36.