That works fine...but I wanted to know if there was a printcap setting that
ignores zero length files, so that I don't need to change a multitude of
scripts!

-----Original Message-----
From: Joel Hammer [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, 4 September 2002 11:25 AM
To: [EMAIL PROTECTED]
Subject: Re: LPRng: Multiple print jobs...zero length files..


What happens if you use:
lp -djndlzr0 file1
lp -djndlzr0 file2 
etc.
in your script.

Joel
On Wed, Sep 04, 2002 at 12:24:30PM +1000, Burath, Philipp wrote:
> Hi,
> 
> We have nightly script running on our HP-UX box that generate reports 
> that are sent to various network printers which are using LRNG.
> 
> For example our reports are created and we send the following command:
> 
>  lp -djndlzr0 file1 file2 file3
> 
> The only problem is that if for example file3 is zero length in size 
> the script hangs as lp isn't exciting because it is waiting for 
> incoming data. I have replicated this via the command line as well.
> 
> It works fine when printing one file that is zero length in size..
> 
> We can always put some added some test in our scripts to check for 
> zero length files, or separate the one lp statement into multiple, so 
> that this doesn't occur, but I wanted to see if there is any setting 
> that can be used in the printcap file such that zero length jobs are 
> ignored when multiple jobs are sent.
> 
> Regards
> 
> ============================================
> Philipp Burath
> IT Network Support Consultant
> Western Diagnostic Pathology
> 74 Mc Coy Street Myaree WA 6154
> Perth, Australia
> Ph - +61 8 9317 0717
> [EMAIL PROTECTED] 
> ============================================
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and 
> intended solely for the use of the individual or entity to whom they 
> are addressed. If you have received this email in error please notify 
> the system manager.
> 
> This footnote also confirms that this email message has been swept by 
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.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.
> ----------------------------------------------------------------------
> -------

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


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.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