> From [EMAIL PROTECTED] Tue Mar 19 21:41:02 2002
> Date: Tue, 19 Mar 2002 21:12:25 -0800
> From: Dave Thomas <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: stop/start queue
>
> Hi,
>
> I've got HP 2200dse printer with an auto-feeder to an automatic stapler
> which connects via the serial port.  You pretty much send it a start
> command at 9600 bps to grab the batch of paper, jog it so the corner 
> lines up, and fire the staple.  I've written a shell script to do that.
>
> So I'm wondering how I can keep queuing new jobs but stop them and run
> this script between them.
>
> Actually, there's a little more than that -- I need to know when the 
> printer has __ejected__ all the paper in the job, not just sent all the
> data.  I gotta see if I can poll that offa my HP.
>
> My first approach was to set up 2 queues - one that allows queuing, the 
> other that will only queue one at a time and leave printing on.  How
> can this be done 'properly'?
>
>
> Dave

Modify the filter so that it does this.

#!/bin/sh
#  - send the job
/usr/local..../xxx  "$@"

# fire up the program to send the command
/usr/local/.../staple

The /... staple program should be smart enough to determine if the
printer is idle and if you want a staple...

Patrick

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to