On Thu, 23 Jan 2003, Alon Weinstein wrote: > > > can you show us tail of CUPS logs ? > > Here's a more detailed tail of the error log (Log Level = debug), right > after trying to do: > lpr <ps file> > > D [23/Jan/2003:14:44:39 +0200] [Job 17] /usr/lib/cups/filter/cupsomatic: > inserted option PS code: > D [23/Jan/2003:14:44:39 +0200] [Job 17] ptal-connect: connecting to > device "mlc:usb:OfficeJet_G85"... gs PID pid2=23181 > D [23/Jan/2003:14:44:39 +0200] [Job 17] gs command: gs -q -dBATCH > -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs > -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="DESKJET 930" > -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 > -sIjsParams="Quality=0,ColorMode=2,MediaType=0,PenSet=2" -r300 > -dDuplex=0 -sOutputFile=- - > D [23/Jan/2003:14:44:39 +0200] [Job 17] foomatic-gswrapper: gs '-dBATCH' > '-dSAFER' '-dQUIET' '-dNOPAUSE' '-sDEVICE=ijs' '-sIjsServer=hpijs' > '-sDeviceManufacturer=HEWLETT-PACKARD' '-sDeviceModel=DESKJET 930' > '-dDEVICEWIDTHPOINTS=612' '-dDEVICEHEIGHTPOINTS=792' > '-sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2' '-r300' > '-dDuplex=0' '-sOutputFile=/dev/fd/3' '/dev/fd/0' 3>&1 1>&2 > D [23/Jan/2003:14:44:39 +0200] [Job 17] successful. > D [23/Jan/2003:14:44:39 +0200] [Job 17] Unrecoverable error: typecheck > in .putdeviceprops > D [23/Jan/2003:14:44:39 +0200] [Job 17] Couldn't exec foomatic-gswrapper > -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs > -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="DESKJET 930" > -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 > -sIjsParams="Quality=0,ColorMode=2,MediaType=0,PenSet=2" -r300 > -dDuplex=0 -sOutputFile=- - at /usr/lib/cups/filter/cupsomatic line 965.
That's good, because we now have a failed command, and not just "doesn't work". Am I right to assume that this command should recieve a postscript file as input (or standard input?). One thing to invastigate: Try to create have a ghostscript command-line that will produce an output that could be sent directly to /dev/lp0 Something like: cat test.ps | gs \ -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs \ -sDeviceManufacturer="HEWLETT-PACKARD" -sDeviceModel="DESKJET 930" \ -dDEVICEWIDTHPOINTS=612 -dDEVICEHEIGHTPOINTS=792 \ -sIjsParams="Quality=0,ColorMode=2,MediaType=0,PenSet=2" -r300 \ -dDuplex=0 -sOutputFile=- \ >out.prn cat out.prn >/dev/lp0 recall that the printing system has two roles: 1. get a print job, translate it to "printing instructions" file. This part is also known as "print filters". postscript serves as a "common format", that can be created by most programs. But it still needs some translation if it is to be used in a non-postscript printer 2. Maintain the printer queue: it takes much shorter to submit a job than to print it. But two jobs can't be printed on the same printer at once (unlike two jobs running on the same CPU "at once"). So it is needed need to keep a queue of waiting jobs. While maintaining a queue, it would be also useful to control the queued and printed jobs etc. (Things are more complicated when there is more than one printer, or when the printer is handled by a remote server, but the tasks remain the same) Foomatic is a print filter. In your configuration Cups uses foomatic to do the translations. The job of ghostscript is to translate postscript to "any other format" In the above command, it was using the ghostscript output device "ijs": -sDEVICE=ijs -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
