View Single Post

   
  #5 (permalink)  
Old 03-17-2008, 06:09 AM
Joseph Rosevear
 
Posts: n/a
Default Re: netatalk and authentication

Chick Tower <c.tower@deadspam.com> wrote:

[snip]

> Would it be acceptable to just go through the job queue on the CUPS
> server, delete jobs you don't want printed, and then "turn on" the
> printer, Joe? You can probably do this right now, since you already know
> how to prevent the printer from printing new jobs. Or do you feel you
> need to see what the kids want to print before deciding to let them print
> it?


Chick, I misunderstood your suggestion the first time. Or perhaps it
was necessary for me to work out the details.

I don't need to turn the printer off at the printer, I can use
"/usr/bin/disable <printer name>" instead. Here is the method I'm
planning to use (in case you or other readers are interested):

I'll make six scripts and use them as tools. Since I use SAM (see
SourceForge), I'll use it to organize the tools in a menu. These are
the tools I'm planning to make:

vvv
collect accept $printer; /usr/bin/disable $printer; status

park reject $printer; /usr/bin/disable $printer; status; queue

send reject $printer; /usr/bin/enable $printer; status; queue

remove lprm $1 -P $printer; queue

status lpstat -t | grep "$printer "

queue lpq -P $printer
^^^

Or something like this.

I hope to use the tools to make controlling the printer easier. Thanks
again for your help.

BTW, I've about given up on my hopes to do this via authentication.

-Joe
Reply With Quote