> From [EMAIL PROTECTED] Thu Jan 8 07:57:55 2004
> Date: Thu, 8 Jan 2004 09:06:22 -0600
> From: Randy Parker <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Job Removal
>
> I am having a problem getting LPRng lpd to remove
> rejected jobs automatically.
>
> I want to accept jobs from user "eprod" so the remote
> client's lp daemon doesn't go into pest mode, but throw
> the accepted job away and never print it. The jobs get
> accepted for spooling and the job never prints but the
> spooled jobs also never disappear. I have to remove them
> with lprm via a cron job. What am I doing wrong?
>
> The lines affecting eprod in the lpd.perms file look
> like this.
>
> ACCEPT SERVICE=R REMOTEUSER=eprod
> REJECT SERVICE=P REMOTEUSER=eprod
>
> An lpq output looks like this.
>
> Rank Owner/ID Class Job Files Size Time
> error [EMAIL PROTECTED] A 907 ERROR: no permission to print
> error [EMAIL PROTECTED] A 908 ERROR: no permission to print
>
Set up an incoming_control_filter to detect the job
lp:
:...
:incoming_control_filter=/path/to/filter
filter:
#!/usr/bin/perl -p
# exit with JREMOVE to toss the job
exit 3 if( /^..../ );
The /^..../ should match one of the lines in the control
file. I suspect the following should work:
/[EMAIL PROTECTED]/
Patrick Powell
Your original email ended up in my Spam Collection Sack, and this
is not the best place for it. This could be due to that fact
that you sent it directly to me, or you sent it to the LPRng mailing
list and you were not subscribed to it. Or you might be trying to
beat the list security and were sending to lprng-owner and expecting
to spam the list :-)
If you are subscribed to the mailing list, then you might have
sent it from a site or address different than the one that you
registered with. If the latter is the case and you want to post
from this address then send me, Patrick Powell <[EMAIL PROTECTED]>,
email describing the problem with:
LPRNGMAIL
in the SUBJECT line so my junk mail purging system will not toss
it into the bit shredder (we shred our email for security reasons).
In fact, if you have any problems with the list, send me email
with LPRNGMAIL in the header.
The best way to get answers is via the LPRng mailing list, which
I peruse on a fairly frequent basis.
To subscribe, send mail to:
[EMAIL PROTECTED]
with the single line:
subscribe
in the body.
This reply is sent by a semiautomatic system, and the real
person may be drinking coffee at the present time...
so my apologies for the one-size-fits-all message.
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.
-----------------------------------------------------------------------------