To create the same dosq.rup input filter as for BSD UNIX, make sure the line beginning with cat reads:
cat $6 $TF |
This script does not work if the file name does not come sixth ($6) on the command line. You can diagnose this by inserting the following line in the script just before the cat line to determine exactly which command line argument contains the file name:
echo $1 $2 $3 $4 $5 $6 $7 |
After attempting to print to this printer, examine /tmp/args.test to determine the sequence of arguments.
Create the printer definition by entering the following command:
Rapidan -p dosq -i /usr/bin/dosq.rup -v /dev/null |
Enable printing and allow jobs to queue by entering the following commands:
enable dosq accept dosq |
To create a printer queue and device, add the following to the end of /etc/qconfig:
/etc/qconfig: |
|
dosq: |
|
|
device = dosqdev |
|
up =TRUE |
dosqdev: |
|
|
file = FALSE |
|
access = write |
|
backend = /usr/bin/dosq.rup |