File backend to replace existing pin printers

Calvin Gordon calvin.gordon at sasktel.net
Fri Sep 19 11:02:53 PDT 2008


> On 2008 Sep 19, at 12:57, Calvin Gordon wrote:
> > D [19/Sep/2008:09:48:56 -0600] [Job 45] /usr/lib/cups/backend/
> > filewrite: No such file or directory
>
>
> I rather suspect the above extract from your log has something to do
> with it.
>
> --
Sorry, i added the "r" in a previous post by mistake. Once you enter the forest, it's tough to see the trees anymore.

ls -lh /usr/bin/cups/backend/

  -rwxr-xr-x 1 root root 5.2K 2008-09-19 08:34 filewrite

snippet from filewrite

  TARGETFILE=${DEVICE_URI#filewrite:}

cat /etc/cups/printers.conf

  <Printer fileprinter>
  Info fileprinter
  DeviceURI filewrite:/home/profit-master/test.prn
  State Stopped
  StateMessage /usr/lib/cups/backend/filewrite failed
  StateTime 1221839336
  Accepting Yes
  Shared Yes
  JobSheets none none
  QuotaPeriod 0
  PageLimit 0
  KLimit 0
  OpPolicy default
  ErrorPolicy stop-printer
  </Printer>

Snippet from errorlog

D [19/Sep/2008:09:48:56 -0600] [Job 45] envp[21]="DEVICE_URI=filewrite:/home/profit-master/test.prn"
D [19/Sep/2008:09:48:56 -0600] [Job 45] envp[22]="PRINTER=fileprinter"
I [19/Sep/2008:09:48:56 -0600] [Job 45] Started backend /usr/lib/cups/backend/filewrite (PID 11258)
I [19/Sep/2008:09:48:56 -0600] Saving subscriptions.conf...
D [19/Sep/2008:09:48:56 -0600] cupsdProcessIPPRequest: 9 status_code=0 (successful-ok)
E [19/Sep/2008:09:48:56 -0600] PID 11258 (/usr/lib/cups/backend/filewrite) stopped with status 22!
D [19/Sep/2008:09:48:56 -0600] [Job 45] /usr/lib/cups/backend/filewrite: No such file or directory
D [19/Sep/2008:09:48:56 -0600] [Job 45] File 0 is complete.
I [19/Sep/2008:09:48:56 -0600] [Job 45] Backend returned status 22 (unknown)

it seems to find and load filewrite, then claims there is no such file or directory.  Usually when i get stumped, it's almost always a permission issue, but i'm stumped again.

Thanks a ton for all the input so far.





More information about the cups mailing list