How can one pass the contents of dfA* file to :if=/some_path/xxx?

I'm trying to PREPEND AND APPEND the contents of a print job with some
PCL code to result in a PCL job and thus get printed 
(running lprng-3.5.1).  

The only info I'm seeing is the following (NOT the actual data):

-CA -Ff -Hhost -Jjob -Lroot -Ptest -aacct -d/var/spool/lprng/queues/test/ 
-e/var/spool/lprng/queues/test/dfA437host -fjob -hhost -j437 
-k/var/spool/lprng/queues/test/cfA437host -l60 -nroot -sstatus -w80 -x0 -y0 acct

Any pointers?

Thanks in advance.

-- John


#-------- printcap
test
        :sd=/var/spool/lprng/queues/test
        :pl#60:mx#10000
        :af=acct:lf=log:ps=status
        :sh
        :rw:lp=some_host%9100
        :if=/some_path/xxx

#--------- xxx filter
#!/usr/local/bin/perl -w
# 
#
use Getopt::Std;

$HEADER="some header info"
$TRAILER="some trailer info";

getopts("e:");
open(SFILE,"$opt_e") or die "Boom: can't open spool file $opt_e: $!\n";

print $HEADER,"\n";
while (<SFILE>) {
    print $_;
}
close(SFILE);
print "\n",$TRAILER,"\n";

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