Hi guys

I'm trying to set something up for work here that will output to our Fuji Xerox 
printers on Solaris 2.6

Basically it involves double spooling, as per instructions here below

Here are the steps:

Step 1. On the server, set up the filter device

$ lpadmin -p dc451 -v /dev/null -i /usr/lib/lp/model/standard
        $ enable dc451
        $ accept dc451

Step 2. Edit the newly created interface script (/etc/lp/interfaces/dc451)

* Look for the case statement that starts case $TERM in

* For the * ) condition, comment out the line that refers to FILTER=${LPCAT}

* Insert the line FILTER="/bin/unix2dos | lp -s -d dc451-r"

Step 3. Set up the network printer (no1316p-r)

$ lpadmin -p dc451-r -o protocol=bsd,dest=dc451 -v /dev/null \
        -i /usr/lib/lp/model/netstandard
        $ enable dc451-r
        $ accept dc451-r


$ lpshut ; /usr/lib/lpsched

Note: Without specifying the -T or -I options, the defaults "unknown" and "any" are 
used.

This works fine, but creates more overhead for the printer albeit not much.
In the attached file pclcode.txt is the escape codes for telling the printer to print 
text as PCL, I would like to use this option instead.
FILTER="/bin/cat /etc/lp/fd/pclcode.txt $file | lp -s -d dc451-r"

My question is 
What variable do I need to put to make the lp output be the $file
listed above so it gets the code included as a header ?

Chris

Attachment: pclcode.txt
Description: Binary data

Reply via email to