Hi all,
I have made a filter program, which is invoked from the printcap entry:
...
:if=/usr/bin/my_filter --filter:
and process the file(s) with respect to the -Z options given from the
lpr line:
lpr -P my_queue -Z"PageSize=A3" /tmp/lp1.ps /tmp/lp2.ps
As I can see, the -Z options and the files are not passed to the filter
as parameters, they are written to stdin.
So, how can I know (from the filter program) when to stop processing the
-Z options (from stdin) and begin to process the files?
Also, is there a limitation of the string length of the -Z options?
Also, how it is called the filter when multiple files are pressent in
the command line; it is called for each file?
Thanks in advance,
Cosmin Bonea
-----------------------------------------------------------------------------
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.
-----------------------------------------------------------------------------