[cups.general] Real-world use of backend error handler?

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Sun Aug 20 13:37:03 PDT 2006


On Aug 20, 2006, at 16:28 , Michael wrote:

> Now I got to the point in the CUPS Quickstart that talks about the  
> backend error handler (beh).  I want to use this command:
> lpadmin -p HP5L -E -v beh:/0/0/8/parallel:/dev/lp0
>
> My main question is where the lpadmin command should be invoked  
> from.  I am tempted to put it under /etc/init.d/cupsys so that is  
> invoked whenever the CUPS server is started or restarted.  Is this  
> the standard thing to do?

You should only need to execute it once; CUPS will remember it.

> 1.  Is the "queue name" you put after the -p arbitrary, or does it  
> have to match the name of your printer?

It needs to match the printer name.  (You could, after all, have  
multiple printers; we're up to a hundred or so.)

> 2.  My man page for lpadmin says that for encryption the -E should  
> come before the -p.  Will it still work reversed as in the  
> suggested beh syntax?

I haven't checked the actual argument parsing code, but -E later in  
the lpadmin command line "enable"s the printer (i.e. allows it to  
process jobs).

> 3.  What exactly is supposed to get encrypted if I'm just  
> configuring 1 PC connected to 1 printer.  Is the encryption option  
> really only for when you have a separate machine acting as a print  
> server, so the traffic from your print client PC to the print  
> server PC gets encrypted?

Yes, that's what it's for.

-- 
brandon s. allbery     [linux,solaris,freebsd,perl]       
allbery at kf8nh.com
system administrator  [openafs,heimdal,too many hats]   
allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university       
KF8NH







More information about the cups mailing list