View Single Post

   
  #1 (permalink)  
Old 01-05-2008, 08:13 AM
Torsten Schlabach
 
Posts: n/a
Default Problem with piobe

Dear all,

I am trying to track down a problem with printouts just not coming off
the printer.

What I found so far is:

1) I can see my jobs queueing up in /var/spool/qdaemon. They just stay
there forever.

2) I can successfully print my jobs using

/usr/lib/lpd/pio/etc/piohpnpf -x the.host.name -p 9100
/var/spool/qconfig/jobfilename

3) My backend= line for the printer reads:

backend = /usr/lib/lpd/pio/etc/piojetd the.host.name 9100

piojetd is a script, which contains a line:

/usr/lib/lpd/piobe "$@" | /usr/lib/lpd/pio/etc/piohpnpf -x $hostname -p
$port

Note that the right half of the pipe is exactly that works for me when
I use it stand-alone. So I conclude that there might be the following
reasons why my jobs don't work:

1) The backend does not call the piojetd script at all. Unlikely, as
the queued is up and running and the queue is READY.

2) The script never reaches the above mentioned line.

3) piobe does not return anything which might get piped into piohpnpf.

I have quite a strong believe in option 3), because I tried to call
piobe manually:

/usr/lib/lpd/piobe /var/spool/myjobfilewhichIwasabletoprint

The exit code is 0 and the result is basically nothing. I also tried

/usr/lib/lpd/piobe -a 1 -dp -A 2
/var/spool/myjobfilewhichIwasabletoprint

I would have expected some diagnostic output from that command and I
understand -dp will just pass the file through, so I would have
expected seeing the content of the jobfile on stdout.

Did I misunderstand anything?

Kind regards,
Torsten Schlabach

Reply With Quote