> From [EMAIL PROTECTED] Fri Jul 28 14:20:55 2000
> Date: Fri, 28 Jul 2000 14:10:39 -0600
> From: Daniel Carroll <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: Large printjob aborts
>
> Hello,
>
>    I have a question about printjob timeouts/aborts with
> LPRng (3.6.21):  If a printjob takes more than 100 minutes to
> print, does LPRng abort the prinjob?  (When using lpq -D1 to
> query the queue, I am seeing messages saying JTIMEOUT when the
> job aborts.)

You can set the timeout to whatever you want.  See the
/etc/lpd.conf file, look for 'timeout' options

# Purpose: connection timeout for remote printers
#   default connect_timeout=10  (INTEGER)
# Purpose: exit linger timeout to wait for socket to close
#   default exit_linger_timeout=600  (INTEGER)
# Purpose: timeout between connection attempts to remote logger
#   default logger_timeout=0  (INTEGER)
# Purpose: timeout for read/write lpr IO operatons
#   default send_job_rw_timeout=6000  (INTEGER)

You can set this to 0, which is infinity:

send_job_rw_timeout=0

# Purpose: timeout for read/write status or control operatons
#   default send_query_rw_timeout=30  (INTEGER)
# Purpose: stalled job timeout

>
> Before it aborts, an 'lpq' of the queue reports something like:
>
> spool_host ~> lpq  -Pprod_printer
> Printer: prod_printer@spool_host 
>  Queue: 1 printable job
>  Server: pid 16173 active
>  Unspooler: pid 16174 active
>  Status: processing 'dfA338myhost', size 9334709, format 'f', IF filter 
>'filter.crlf' at 11:54:26.408
>  Rank   Owner/ID                  Class Job Files                 Size Time
> stalled(5782sec) mylogin@myhost+338 A   338 t.lis              9334709 11:54:25
>
> The printer is printing all of this time (the printjob is about 3500 to
> 4500 pages of output), until the job is aborted.
>
> Perhaps as long as bits/bytes are being written out, the printjob
> shouldn't be considered "Stalled"?

There is a disconnect here - the spooler has no feedback from the filter.

>
> The printcap entry for this queue looks like:
>
> prod_printer:force_localhost
> prod_printer:server
>      :bk
>      :send_data_first
>      :sd=/var/spool/lpd/%P
>      :lp=hp_jet_direct_500ex.mesastate.edu%9101
>      :lpd_bounce
>      :sh
>      :control_filter=/usr/local/libexec/novell/cfilter
>      :filter=/usr/local/libexec/novell/filter.crlf
>
> The 'control_filter' entry just strips the 'L' entry for printing a
> banner page out.  The filter.crlf adds a cr/lf to the end of
> every line (I might be able to use ifhp, but I'm also doing some
> other custom filtering of the printjob at times...).  Both filters
> read from stdin and write to stdout.
>
>       - Dan

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.astart.com)

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