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

Helge Blischke h.blischke at srz.de
Wed May 31 04:54:36 PDT 2006


Felix E. Klee wrote:
> On Wed, 31 May 2006 06:10:46 -0400, Johannes Meixner wrote:
> 
>>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
> 
> 
> Thanks for info, but your procedure doesn't work on the system that I just
> tested it on (SuSE 9.2 with CUPS 1.1.21):
> 
> oregon:~ # grep FileDevice /etc/cups/cupsd.conf
> # FileDevice: determines whether the scheduler will allow new printers
> FileDevice Yes
> oregon:~ # rccups stop
> Shutting down cupsd                                                  done
> oregon:~ # rccups start
> Starting cupsd                                                       done
> oregon:~ # lpstat -v foo
> device for foo: parallel:/dev/lp0
> oregon:~ # lpadmin -p foo -v /tmp/file.prn
> lpadmin: add-printer (set device) failed: client-error-not-possible
> 

.... try:
lpadmin -p foo -c file:/tmp/file.prn

Helge

-- 
Helge Blischke
Softwareentwicklung
SRZ Berlin | Firmengruppe besscom
http://www.srz.de




More information about the cups mailing list