OmeLuuk
15th July 2002, 12:31
filter6.1 is the binary that makes the printer independent tmp file into a printer dependent output file that is being sent to the printer.
Sometimes this conversion is not what you want it to be (in current portingset 6.1c.06.04 when using matrix printers from Mannesmann, is solved in 6.1c.06.05).
You can compare the output file with the ${BSE}/lib/printinf/?/* file to see what code is inserted where. What printerdriver is actually used, can be seen in the argument list.
Use this alternative script to save the input/output files and the argument line used to call filter6.1:#!/bin/ksh
# script filter6.1 to catch the argument list,
# inputfile and outputfile from the filter6.1 binary.
# usage:
# $ mv ${BSE}/bin/filter6.1 ${BSE}/bin/filter6.1.org
# $ vi ${BSE}/bin/filter6.1 < copy this textfile
# $ chmod 755 ${BSE}/bin/filter6.1
#
# results:
# - for every run a line is written to ${BSE_TMP}/argfile.filter
# with runnumber and argument line used
# - for every run a file is written to ${BSE_TMP}/input###.filter
# containing the input file used (printer independent format)
# - for every run a file is written to ${BSE_TMP}/output###.filter
# containing the generated output file (printer dependent format)
# where the runnumber is used in the filenames (instead of ###)
#
# DO NOT FORGET to
# $ cp -p ${BSE}/bin/filter6.1.org ${BSE}/bin/filter6.1
# $ rm ${BSE_TMP}/*filter
# when done testing.
# get last runnum
runnum=`basename \`ls ${BSE_TMP}/output???.filter | tail -1\` | cut -c7-9`
# Format number with preceding zero's (illegal becomes 000)
runnum=`printf "%03d" ${runnum}`
# Raise runname with one
let runnum=runnum+1
# Format number with preceding zero's
runnum=`printf "%03d" ${runnum}`
echo ${runnum}: $* >> ${BSE_TMP}/argfile.filter
cp -p ${10} ${BSE_TMP}/input${runnum}.filter
filter6.1.org $*
cp -p ${12} ${BSE_TMP}/output${runnum}.filter
Happy testing.
Sometimes this conversion is not what you want it to be (in current portingset 6.1c.06.04 when using matrix printers from Mannesmann, is solved in 6.1c.06.05).
You can compare the output file with the ${BSE}/lib/printinf/?/* file to see what code is inserted where. What printerdriver is actually used, can be seen in the argument list.
Use this alternative script to save the input/output files and the argument line used to call filter6.1:#!/bin/ksh
# script filter6.1 to catch the argument list,
# inputfile and outputfile from the filter6.1 binary.
# usage:
# $ mv ${BSE}/bin/filter6.1 ${BSE}/bin/filter6.1.org
# $ vi ${BSE}/bin/filter6.1 < copy this textfile
# $ chmod 755 ${BSE}/bin/filter6.1
#
# results:
# - for every run a line is written to ${BSE_TMP}/argfile.filter
# with runnumber and argument line used
# - for every run a file is written to ${BSE_TMP}/input###.filter
# containing the input file used (printer independent format)
# - for every run a file is written to ${BSE_TMP}/output###.filter
# containing the generated output file (printer dependent format)
# where the runnumber is used in the filenames (instead of ###)
#
# DO NOT FORGET to
# $ cp -p ${BSE}/bin/filter6.1.org ${BSE}/bin/filter6.1
# $ rm ${BSE_TMP}/*filter
# when done testing.
# get last runnum
runnum=`basename \`ls ${BSE_TMP}/output???.filter | tail -1\` | cut -c7-9`
# Format number with preceding zero's (illegal becomes 000)
runnum=`printf "%03d" ${runnum}`
# Raise runname with one
let runnum=runnum+1
# Format number with preceding zero's
runnum=`printf "%03d" ${runnum}`
echo ${runnum}: $* >> ${BSE_TMP}/argfile.filter
cp -p ${10} ${BSE_TMP}/input${runnum}.filter
filter6.1.org $*
cp -p ${12} ${BSE_TMP}/output${runnum}.filter
Happy testing.