[cups.general] Getting copy of file sent to printer?

Johannes Meixner jsmeix at suse.de
Wed May 31 03:10:46 PDT 2006


Hello,

On May 31 06:01 Felix E. Klee wrote (shortened):
> Is it possible to get a copy of the file that CUPS sends to the printer
> (for debugging purposes)?

Set "FileDevice Yes" in /etc/cups/cupsd.conf and restart cupsd.

Use "lpstat -v queue-name" and note the current DeviceUri.

Change the DeviceUri to send output to file using
lpadmin -p queue-name -v /tmp/file.prn

Do a test print.
Output is now in /tmp/file.prn

Change the DeviceUri back to the original value:
lpadmin -p queue-name -v noted-DeviceUri


Kind Regards,
Johannes Meixner
-- 
SUSE LINUX Products GmbH, Maxfeldstrasse 5      Mail: jsmeix at suse.de
90409 Nuernberg, Germany                    WWW: http://www.suse.de/





More information about the cups mailing list