[cups.general] Cups doesn't print raw to file, only to printers

Stefan-Michael. Guenther (in-put GbR) S.Guenther at in-put.de
Tue Jun 6 01:52:29 PDT 2006


Hello,

I have setup the following HP Laserjet, which use the raw driver:

<DefaultPrinter HP1>
Info
Location Buero
DeviceURI socket://192.168.0.101:9100
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

This printer works perfect.

After this I setup another raw printer which should use a file as output 
device:

<Printer tofile>
Info tofile
DeviceURI file:/tmp/fax2.ps
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

And I also added "FileDevice yes" in /etc/cups/cupsd.conf and restartet the 
daemon.

The command "lpr -P tofile /etc/motd" should then produce the file fax2.ps 
in /tmp, but it doesn't. Here is the output in /var/log/cups/error_log with 
LogLevel debug in /etc/cups/cupds.conf:

D [06/Jun/2006:10:28:28 +0200] AcceptClient: 8 from localhost:631.
D [06/Jun/2006:10:28:28 +0200] CloseClient: 7
D [06/Jun/2006:10:28:28 +0200] ReadClient: 8 POST /printers/tofile HTTP/1.1
D [06/Jun/2006:10:28:28 +0200] print_job: request file type is 
application/vnd.cups-raw.
D [06/Jun/2006:10:28:28 +0200] CancelJob: id = 685
D [06/Jun/2006:10:28:28 +0200] check_quotas: requesting-user-name = 'root'
D [06/Jun/2006:10:28:28 +0200] print_job: requesting-user-name = 'root'
I [06/Jun/2006:10:28:28 +0200] Adding start banner page "none" to job 1185.
I [06/Jun/2006:10:28:28 +0200] Adding end banner page "none" to job 1185.
I [06/Jun/2006:10:28:28 +0200] Job 1185 queued on 'tofile' by 'root'.
D [06/Jun/2006:10:28:28 +0200] Job 1185 hold_until = 0
D [06/Jun/2006:10:28:28 +0200] StartJob(1185, 0x555555b8da90)
D [06/Jun/2006:10:28:28 +0200] StartJob() id = 1185, file = 0/1
D [06/Jun/2006:10:28:28 +0200] StartJob: Sending job to queue tagged as raw...
D [06/Jun/2006:10:28:28 +0200] job-sheets=none,none
D [06/Jun/2006:10:28:28 +0200] banner_page = 0
D [06/Jun/2006:10:28:28 +0200] StartJob: argv = 
"tofile","1185","root","motd","1","","/var/spool/cups/d01185-001"
D [06/Jun/2006:10:28:28 +0200] StartJob: 
envp[0]="PATH=/usr/lib64/cups/filter:/bin:/usr/bin"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[1]="SOFTWARE=CUPS/1.1"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[2]="USER=root"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[3]="CHARSET=utf-8"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[4]="LANG=de"
D [06/Jun/2006:10:28:28 +0200] StartJob: 
envp[5]="PPD=/etc/cups/ppd/tofile.ppd"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[6]="CUPS_SERVERROOT=/etc/cups"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[7]="RIP_MAX_CACHE=8m"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[8]="TMPDIR=/var/spool/cups/tmp"
D [06/Jun/2006:10:28:28 +0200] StartJob: 
envp[9]="CONTENT_TYPE=application/vnd.cups-raw"
D [06/Jun/2006:10:28:28 +0200] StartJob: 
envp[10]="DEVICE_URI=file:/tmp/fax2.ps"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[11]="PRINTER=tofile"
D [06/Jun/2006:10:28:28 +0200] StartJob: 
envp[12]="CUPS_DATADIR=/usr/share/cups"
D [06/Jun/2006:10:28:28 +0200] StartJob: 
envp[13]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[14]="CUPS_SERVER=localhost"
D [06/Jun/2006:10:28:28 +0200] StartJob: envp[15]="IPP_PORT=631"
D [06/Jun/2006:10:28:28 +0200] StartJob: statusfds = [ 7 9 ]
D [06/Jun/2006:10:28:28 +0200] StartJob: filterfds[1] = [ 10 -1 ]
D [06/Jun/2006:10:28:28 +0200] ProcessIPPRequest: 8 status_code=0
D [06/Jun/2006:10:28:28 +0200] UpdateJob: job 1185, file 0 is complete.
D [06/Jun/2006:10:28:28 +0200] CancelJob: id = 1185
D [06/Jun/2006:10:28:28 +0200] StopJob: id = 1185, force = 0
D [06/Jun/2006:10:28:28 +0200] StopJob: printer state is 3
D [06/Jun/2006:10:28:28 +0200] CloseClient: 8

To me, this all looks quite ok, but I doesn't get the file.

I have also activated the two raw lines in /etc/cups/mime.types 
and /etc/cups/mime.convs, but it didn't change anything.

Does anyone of you have an idea, what going wrong?

System: 			SuSE 10.0, 
cups version:		cups-1.1.23-21.2

Thanks for your help,

Stefan
-- 

********************************************
in-put GbR - Das Linux-Systemhaus
Stefan-Michael Guenther
Moltkestrasse 49     D-76133 Karlsruhe
Tel./Fax : +49 (0)721 / 83044 - 98/93
http://www.in-put.de
********************************************
     Schulungen  Installationen  
         Beratung   Support
      Voice-over-IP-Loesungen
********************************************





More information about the cups mailing list