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

The hf file in the spool dir has the following info.

  [EMAIL PROTECTED]
  C=willie3
  D=2004-01-08-07:39:59.869
  datafile_count=1
  datafiles=Nsmbprn.004916.a5aixcfdfA907willie3UdfA907willie3
  error=no permission to print
  error_time=0x3ffd5daf
  file_hostname=willie3
  filenames=smbprn.004916.a5aixc
  H=willie3
  held=0x0
  hf_name=hfA907
  hold_class=0x0
  hold_time=0x0
  J=smbprn.004916.a5aixc
  job_time=0x3ffd5daf
  job_time_usec=0xcefa9
  L=eprod
  number=907
  P=eprod
  printable=0x1
  priority=A
  Q=lpclab1
  remotehost=willie3
  remoteport=0x337
  size=93796
  transfername=cfA907willie3
  unixsocket=0x0
  update_time=2004-01-08-07:39:59.978

My lpd.conf file looks like this. Everything else is
per the original lpd.conf.

  save_on_error@
  send_failure_action=remove
  send_try=3

Many thanks for any help,
Randy Parker
Dallas, Texas

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