Path: utzoo!attcan!uunet!lll-winken!ames!xanth!ukma!rutgers!mit-eddie!uw-beaver!rice!sun-spots-request From: gfr@cobra.mitre.org (Glenn Roberts) Newsgroups: comp.sys.sun Subject: Another way to handle MS/Sun Postscript incompatibility Message-ID: <8901191435.AA02301@cobra.mitre.org> Date: 26 Jan 89 07:11:07 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 34 Approved: Sun-Spots@rice.edu Original-Date: Thu, 19 Jan 89 09:35:33 EST X-Sun-Spots-Digest: Volume 7, Issue 122, message 3 of 11 X-Issue-Reference: v7n113 Another way to handle the incompatibility between Microsoft's Postscript products and Sun's PC-NFS and Transcript products (see Stefano Piccardi's solution in v7n113) is to place the following script in a file (called, say 'psprn') in /usr/local/bin on the Sun: echo '%!' | cat - $1 | tr -d '\004' | lpr then on the PC have a batch file (called, say PSPRN.BAT) with COPY %1 H: RSH cobra PSPRN %1 (substitue the name of your Sun for 'cobra' above. Note also that H: is assumed to be NFS mounted to your home directory on the Sun). To print on the PC from, say Excel, print to the file SPOOL.PRN and then in a DOS shell type PSPRN SPOOL.PRN This is a flawed but workable way to work around the incompatibility problem. Unfortunately both this and Mr. Piccardi's solutions require you to execute a DOS command. If you're working on a Sun386i you can solve this problem by putting the following line in your ~/pc/setup.pc file: LPT1 (echo \%\! && cat) | lpr This will force the printer to interpret ALL output to LPT1: as postscript. You should be able to set up LPT2: as a text printer. - Glenn Roberts, The MITRE Corp., McLean VA (703) 883-6820 gfr@cobra.mitre.org