Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc.cso.uiuc.edu!tank!uwvax!astroatc!ttl From: ttl@astroatc.UUCP (Tony Laundrie) Newsgroups: comp.lang.postscript Subject: Re: Garden variety PS -> EPS filter Message-ID: <2341@astroatc.UUCP> Date: 17 Jul 89 17:10:18 GMT References: <11613@orstcs.CS.ORST.EDU> <982@adobe.UUCP> <985@adobe.UUCP> <2537@lll-lcc.UUCP> Reply-To: ttl@astroatc.UUCP (Tony Laundrie) Organization: Astronautics Technology Cntr, Madison, WI Lines: 33 In article <2537@lll-lcc.UUCP> langdon@lll-lcc.UUCP (Bruce Langdon) writes: > >On our Sun 4, the log lists only the banner pages. >Did we install it incorrectly? There is a rumor that Transcript... On our UNIX machine, only the banner pages are noted in /usr/adm/printer_log. Output that comes from the laser printer is saved into a temporary file in the spooling directory, /usr/spool/printer_name/errsXXXX. Unfortunately, lpr removes this file right after your job is finished. There are several ways to capture it: - Type 'tail -0f /usr/spool/printer_name/errs* > somefile' right after sending your job. If you can't get the errs* file fast enough, insert a PostScript pause to your job like this: usertime 5000 add % current usertime + 5000 ms {dup usertime lt {pop exit} if} loop % wait for usertime to catch up OR - Modify your version of lpr so that it copies the errs* file to the mail file if the -m option is used. Add these lines to printjob.c: 929,937c929 < printf("\ncompleted successfully\n"); < /* Copy the error file -- especially for PostScript < output that the user wants to see */ < if ((fp = fopen(tmpfile, "r")) != NULL) { < while ((i = getc(fp)) != EOF) < putchar(i); < (void) fclose(fp); < } < putchar ('\n'); Have fun. ...uwvax!astroatc!ttl ttl@astroatc.UUCP Tony Laundrie