> From [EMAIL PROTECTED] Tue Feb  5 14:38:33 2002
> Date: Tue, 5 Feb 2002 16:34:35 -0500 (EST)
> From: Ryan Novosielski <[EMAIL PROTECTED]>
> To: LPRng Mailing List <[EMAIL PROTECTED]>
> Subject: LPRng: Jobs will not release
>
> I have some color printers with :ah set -- these work fine and are not the
> problem. HOWEVER, I have some lasers that are in a pool, ljnlab: laser1
> and laser2. I have an accounting script that holds jobs when the user does
> not have enough quota to print any longer, and holds them there until they
> are released by a lab assistant after their quota is augmented. However,
> when the lab assistant (or me, as root, so it isn't a permissions thing)
> does:
>
> $ lpc release ljnlab 364
>
> ...the job says "started" or whatever it would say, but then is still
> held. I do it immediately after, so I know it isn't related to the
> accounting script (it takes several seconds to get to that stage). It just
> seems as if it lies to me and claims to be releasing when it is not. This
> SEEMS to be different between 3.7.4, which I believe is the most recent
> version I ran before this, and 3.8.1.
>
> Any requests for more info or any insights anyone can offer?
>
> ---- _  _ _  _ ___  _  _  _
> |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
> |$&| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 732/235.4170 (5-4170)
> \__/ Univ. of Med. and Dent. | IST/ACS - Robert Wood Johnson MS - S-B11


Here is how to debug this.

1. set up a dummy 'accounting script'

#!/bin/sh
if [ -f /tmp/release ] ; then
        echo accept
        exit 0
fi
echo hold 
exit 0

and make the printcap:

lp:
  ...
  :as=|/tmp/acctscript

2.  print a job:

  lpr /tmp/job

3.  now check for status, it should be held:

    lpq -L

4.  touch /tmp/release

5. lpc release lp <jobid>

6.  check to see if it has been released.
    lpq -L

If this works,  then you probably have some problem with the
return status of the accounting script.

Patrick Powell                 Astart Technologies,
[EMAIL PROTECTED]            9475 Chesapeake Drive, Suite D,
Network and System             San Diego, CA 92123
  Consulting                   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.lprng.com)

-----------------------------------------------------------------------------
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