> From [EMAIL PROTECTED] Thu Oct  3 14:07:01 2002
> Date: Thu, 3 Oct 2002 15:00:33 -0500 (CDT)
> From: Robert Giles <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> cc: [EMAIL PROTECTED]
> Subject: LPRng: Jobs lost if lpr invocation occurs too rapidly
>
> Howdy folks - another quick question.  I seem to lose jobs when I print
> items in quick succession, ie:
>
> "a2ps test1.txt; a2ps test2.txt; a2ps test3.txt"
>
> ...doesn't work and at most the first page will print (sometimes nothing
> at all).
>
> If I run each command separately (and pause briefly ~1sec between them),
> all 3 pages print.
>
> I'm using LPRng-3.8.15, both with and without ifhp.  Printer is an HP
> Laserjet 4000N.
>
> /etc/printcap:
> ----
> lp:sd=/var/spool/lpd/lp
>   :force_localhost
>   :lp=raw@spghp1
> #  :ifhp=model=hp4000
> #  :filter=/usr/libexec/filters/ifhp
>
> (ifhp section commented out - doesn't make a difference either way)
>
> Thanks in advance for any insight.
>
> Robert Giles

HMhhh... 

Well, first, what version of a2ps are you using?  I think that at one time
the a2ps program stored its output in /tmp the same file.

Next,  I tried this:

h110: {16} % a2ps /etc/printcap |lpr;
[/etc/printcap (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] sent to the standard output
h110: {17} % !!; !! ; !!;
a2ps /etc/printcap | lpr ; ; a2ps /etc/printcap | lpr ; ; a2ps /etc/printcap | lpr ; ;
[/etc/printcap (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] sent to the standard output
[/etc/printcap (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] sent to the standard output
[/etc/printcap (plain): 1 page on 1 sheet]
[Total: 1 page on 1 sheet] sent to the standard output
h110: {18} % lpq
Printer: lp@h110 (printing disabled)
 Queue: 4 printable jobs
 Server: no server active
 Status: job 'root@h110+316' removed at 08:06:06.787
 Filter_status: done at 07:57:39.731
 Rank   Owner/ID                  Class Job Files                 Size Time
1      papowell@h110+53             A    53 (STDIN)              14802 17:07:13
2      papowell@h110+58             A    58 (STDIN)              14802 17:07:20
3      papowell@h110+63             A    63 (STDIN)              14802 17:07:20
4      papowell@h110+68             A    68 (STDIN)              14802 17:07:20
done   papowell@h110+677            A   677 h110                  5538 07:57:27
h110: {19} %


And it appears to work fine.  You can to 'lpc stop' to see if the jobs get there.
If only PART of the jobs get there, then... you might have the problem I just
mentioned.

Note that the a2ps ... | lpr should confirm this ... you pipe to LPR and it
makes a copy that is DEFINATELY unique.

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