Andreas Klemm on Thu, 17 Jan 2002 00:50:07 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

FreeBSD to FreeBSD, no problem (Re: apsfilter doesn't work on server)


I tried remote printing in my home network.
Machines:

1. titan:	print server
		lineprinter scheduler: default (Berkeley lpd)
		HP DeskJet 970Cxi connected to parallel interface
		printer/queue named "ascii"
		apsfilter version 7.2.1
		OS: FreeBSD 4.5-RC
		IP: 172.16.2.1/24

	/etc/printcap:
	# APS1_BEGIN:printer1
	# - don't delete start label for apsfilter printer1
	# - no other printer defines between BEGIN and END LABEL
	ascii|ijs/DESKJET_970;r=300x300;q=medium;c=full;p=a4;m=auto:\
    	:lp=/dev/lpt0:\
	    :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
	    :sd=/var/spool/lpd/ascii:\
	    :lf=/var/spool/lpd/ascii/log:\
	    :af=/var/spool/lpd/ascii/acct:\
	    :mx#0:\
	    :sh:
	# APS1_END - don't delete this

2. laptop:	print client
		lineprinter scheduler: default (Berkeley lpd)
		printer/queue named "ascii"
		apsfilter version 7.2.1 (only used SETUP to configure
		printcap entry and spool-dir) Used driver: PS printer
		and later removed the line if= in printcap && lpc
		restart all
		OS: FreeBSD 4.4-STABLE from 10.11.2001
		IP: 172.16.2.4/24

	/etc/printcap:
	# APS1_BEGIN:printer1
	# - don't delete start label for apsfilter printer1
	# - no other printer defines between BEGIN and END LABEL
	# :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\
	#
	ascii|PS;r=300x300;q=medium;c=full;p=a4;m=auto:\
    	    :lp=:\
    	    :rm=172.16.2.1:\
    	    :rp=ascii:\
    	    :sd=/var/spool/lpd/ascii:\
    	    :lf=/var/spool/lpd/ascii/log:\
    	    :af=/var/spool/lpd/ascii/acct:\
    	    :mx#0:\
    	    :sh:
	# APS1_END - don't delete this

lpr -P ascii /usr/local/share/apsfilter/setup/test.ps
and
lpr -P ascii /etc/passwd produce valid printouts

Well, I see no problem with apsfilter ...

Could it perhaps be the case, that the printer needs another
setup ? I remember HP printer, who were able to print PS, PCL
and HPGL, sometimes failed recognizing Postscript exactly ...

Could be the case, that you have to set it up, that Postscript is
the default language ... But then you have to send everything 
"encapsulated in PS". But no problem, since this does apsfilter.

And as you can see, FreeBSD 4.5 RC1 fires up apsfilter as input
filter...

One last idea, maybe it makes a difference, when the apsfilter
print server prints to a lpd remote printer ... I currently don'tr
remember eyxactly, if your PS printer was connected locally or
if you print a 2nd time over network to a real PS network printer.

In the attachement the 2 logs, set -x in apsfilter script
of 2 print sessions a) ASCII, b) OS file from laptop ...

	Andreas ///

-- 
Andreas Klemm
Apsfilter Homepage                       http://www.apsfilter.org
Support over mailing-lists (only!)       http://www.apsfilter.org/support
Mailing-list archive                     http://www.apsfilter.org/Lists-Archives
Songs from our band >> 64Bits <<         http://www.64bits.de
Inofficial band pages with add-on stuff  http://www.apsfilter.org/64bits.html
+ PATH=/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin
+ umask 077
+ trap '' 1 13
+ trap 'rm -rf "$APS_TMPDIR"; exit $return_code;' 0
+ trap 'exit 9' 1 5 7 10 12 15
+ '[' 8 -gt 0 ']'
+ variable=
+ variable=variable
+ '[' variable ']'
+ value=132
+ '[' '!' 132 ']'
+ eval 'variable="$value"'
++ variable=132
+ shift
+ '[' 7 -gt 0 ']'
+ variable=
+ variable=variable
+ '[' variable ']'
+ value=66
+ '[' '!' 66 ']'
+ eval 'variable="$value"'
++ variable=66
+ shift
+ '[' 6 -gt 0 ']'
+ variable=
+ variable=variable
+ '[' variable ']'
+ value=0
+ '[' '!' 0 ']'
+ eval 'variable="$value"'
++ variable=0
+ shift
+ '[' 5 -gt 0 ']'
+ variable=
+ variable=USER
+ '[' USER ']'
+ value=
+ '[' '!' '' ']'
+ shift
+ value=root
+ eval 'USER="$value"'
++ USER=root
+ shift
+ '[' 3 -gt 0 ']'
+ variable=
+ variable=HOST
+ '[' HOST ']'
+ value=
+ '[' '!' '' ']'
+ shift
+ value=aklemm.klemm.gtn.com
+ eval 'HOST="$value"'
++ HOST=aklemm.klemm.gtn.com
+ shift
+ '[' 1 -gt 0 ']'
+ variable=
+ ACCT_FILE=/var/spool/lpd/ascii/acct
+ '[' '' ']'
+ shift
+ '[' 0 -gt 0 ']'
+ unset variable value
+ echo dummy
+ read -r dummy
+ read_r=-r
++++ dirname /usr/local/etc/apsfilter/basedir/bin/apsfilter
+++ dirname /usr/local/etc/apsfilter/basedir/bin
++ dirname /usr/local/etc/apsfilter/basedir
+ CONF_DIR=/usr/local/etc/apsfilter
+ '[' -d /usr/local/etc/apsfilter/basedir ']'
++ eval echo '~root'
+++ echo /root
+ HOMEDIR=/root
+ SPOOLDIR=/var/spool/lpd/ascii
+ '[' /var/spool/lpd/ascii ']'
++ basename /var/spool/lpd/ascii
+ QUEUE=ascii
+ '[' -f /usr/local/etc/apsfilter/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/apsfilterrc
+ '[' -f /usr/local/etc/apsfilter/ascii/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/ascii/apsfilterrc
++ PRINTER=ijs/DESKJET_970
++ PAPERSIZE=a4
++ METHOD=auto
++ QUALITY=medium
++ COLOR=full
++ RESOLUTION=300x300
+ '[' -f /usr/local/etc/apsfilter/ascii/apsfilterrc.root ']'
+ '[' '' ']'
+ '[' -n '' -a -f /root/.apsfilter/apsfilterrc.ascii ']'
+ export PATH
+ : /tmp
+ APS_TMPDIR=/tmp/apsfilter8475
+ rm -rf /tmp/apsfilter8475
+ mkdir -m 711 /tmp/apsfilter8475
+ '[' 0 -ne 0 ']'
+ export TEMP=/tmp/apsfilter8475 TMPDIR=/tmp/apsfilter8475
+ TEMP=/tmp/apsfilter8475
+ TMPDIR=/tmp/apsfilter8475
+ : /usr/bin/awk
+ : medium bi plain full
+ '[' '' ']'
+ '[' '!' '' ']'
+ read pid
+ read -r control_file
+ read -r line
+ value=aklemm.klemm.gtn.com
+ HOST=aklemm.klemm.gtn.com
+ read -r line
+ value=root
+ USER=root
+ read -r line
+ value=aklemm.klemm.gtn.com
+ CLASS=aklemm.klemm.gtn.com
+ read -r line
+ value=dfA000aklemm.klemm.gtn.com
+ read -r line
+ value=dfA000aklemm.klemm.gtn.com
+ read -r line
+ value=/etc/passwd
+ FNAME=/etc/passwd
+ read -r line
+ : /etc/passwd
+ unset pid control_file line value
+ '[' /etc/passwd = stdin -o /etc/passwd = '(stdin)' -o /etc/passwd = '(STDIN)' ']'
+ '[' aklemm.klemm.gtn.com ']'
+ old_ifs= 	

+ IFS=:,
+ set -- aklemm.klemm.gtn.com
+ IFS= 	

+ unset old_ifs
+ echo 'apsfilter warning: unknown option '\''aklemm.klemm.gtn.com'\'''
apsfilter warning: unknown option 'aklemm.klemm.gtn.com'
+ unset option
+ : 10
+ '[' '' ']'
+ COPIES=1
+ '[' 1 -gt 10 ']'
+ '[' 1 = 0 ']'
+ '[' '' ']'
+ LANDSCAPE=
+ PORTRAIT=set
+ '[' '' = short ']'
+ BINDING=long
+ '[' '' ']'
+ :
+ unset PS_NUP
+ '[' -e /usr/local/etc/apsfilter/restrictions ']'
+ '[' -e /usr/local/etc/apsfilter/ascii/restrictions ']'
+ WIDTH_POINTS=595
+ HEIGHT_POINTS=842
+ WIDTH_INCHES=8.26
+ HEIGHT_INCHES=11.69
+ '[' set ']'
+ '[' -f /usr/local/etc/apsfilter/ascii/netware.conf -o -f /usr/local/etc/apsfilter/ascii/lpr.conf ']'
+ unset REMOTE_COPIES
+ DRIVER_SCRIPT=ijs/DESKJET_970
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_970 ']'
++ grep :ijs/DESKJET_970: /usr/local/etc/apsfilter/basedir/driver/MAPPING
++ sed 's/:.*//'
+ DRIVER_SCRIPT=ijs/DESKJET_920
+ '[' -z ijs/DESKJET_920 ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_920 ']'
+ . /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_920
+++ echo ijs/DESKJET_970
+++ sed 's/_/ /g'
++ PRINTER=ijs/DESKJET 970
++ RESOLUTION=300x300
++ params=Quality=0,ColorMode=2,MediaType=0,PenSet=2
++ '[' -n '' -a -n '' ']'
++ GS_FEATURES= -sIjsParams='Quality=0,ColorMode=2,MediaType=0,PenSet=2' -sDeviceManufacturer=HEWLETT-PACKARD
+ GS_FEATURES= -sIjsParams='Quality=0,ColorMode=2,MediaType=0,PenSet=2' -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 970' -sIjsServer=hpijs
+ PRINTER=ijs
+ '[' ijs '!=' PS ']'
+ '[' '' ']'
+ '[' '' ']'
+ unpack print_auto
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter8475/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter8475/header1
+ FILE_TYPE=/tmp/apsfilter8475/header1: ASCII text
++ echo ASCII text
++ tr A-Z a-z
+ FILE_TYPE=ascii text
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter8475/header1 -
+ eval print_auto
++ print_auto
++ print_ascii
++ local features jobname lang
++ jobname=/etc/passwd
+++ echo /etc/passwd
+++ wc -c
++ '[' 12 -gt 40 ']'
++ find_filter a2ps
++ type a2ps
++ '[' '' ']'
++ : a4
++ features=-1
++ unset LANDSCAPE PS_NUP
++ : --delegate=no -X iso1 -g
++ '[' '' ']'
++ features=-1 --borders=no
++ '[' '' ']'
++ features=-1 --borders=no --no-header
++ features=-1 --borders=no --no-header --prologue=color
++ eval a2ps -M a4 '--center-title="$jobname"' '-b"Printed by $USER from $HOST"' -1 --borders=no --no-header --prologue=color -q -o -
+++ a2ps -M a4 --center-title=/etc/passwd '-bPrinted by root from aklemm.klemm.gtn.com' -1 --borders=no --no-header --prologue=color -q -o -
++ print_ps
++ local paper gs_cmd
++ '[' '' ']'
++ '[' ijs = PS ']'
++ find_filter gs
++ type gs
++ : /usr/X11R6/lib/X11/fonts/Type1:/var/X11R6/lib/X11/fonts/Type1
++ : /usr/X11R6/lib/X11/fonts/Type1:/var/X11R6/lib/X11/fonts/Type1
++ export GS_FONTPATH GS_LIB
++ '[' a4 = tabloid ']'
++ paper=a4
++ gs_cmd=gs -q -dNOPAUSE -dSAFER -sDEVICE='ijs' 		 -sPAPERSIZE='a4' 		-r'300x300' -sOutputFile=-  -sIjsParams='Quality=0,ColorMode=2,MediaType=0,PenSet=2' -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 970' -sIjsServer=hpijs 		 - 
++ '[' '' ']'
++ ps_postprocessing
++ '[' '' ']'
++ eval ps_set_duplex
+++ ps_set_duplex
+++ local tumble duplex
+++ '[' long = short ']'
+++ tumble=false
+++ '[' '' ']'
+++ duplex=false
+++ /usr/bin/awk '{ print } /^%%EndProlog/ { print "countdictstack\n/psset_mark\n{\n%%BeginFeature: *Duplex false\n  (<<) cvx exec /Duplex (false) cvx exec (>>) cvx exec\n  systemdict /setpagedevice get exec\n%%EndFeature\n%%BeginFeature: *Tumble false\n  (<<) cvx exec /Tumble (false) cvx exec (>>) cvx exec\n  systemdict /setpagedevice get exec\n%%EndFeature\n} stopped\n{ /psset_mark eq { exit } if } loop\ncountdictstack exch sub dup 0 gt\n{\n  { end } repeat\n}{\n  pop\n} ifelse" }'
++ print_data
++ local c ncp_print
++ '[' '' ']'
++ '[' 1 = 1 -o -n '' ']'
++ print_copy
++ '[' '' ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/smbclient.conf ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/netware.conf ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/lpr.conf ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/pap.conf ']'
++ cat
++ eval gs -q -dNOPAUSE -dSAFER '-sDEVICE='\''ijs'\''' '-sPAPERSIZE='\''a4'\''' '-r'\''300x300'\''' -sOutputFile=- '-sIjsParams='\''Quality=0,ColorMode=2,MediaType=0,PenSet=2'\''' -sDeviceManufacturer=HEWLETT-PACKARD '-sDeviceModel='\''DESKJET' '970'\''' -sIjsServer=hpijs -
+++ gs -q -dNOPAUSE -dSAFER -sDEVICE=ijs -sPAPERSIZE=a4 -r300x300 -sOutputFile=- -sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -sDeviceManufacturer=HEWLETT-PACKARD '-sDeviceModel=DESKJET 970' -sIjsServer=hpijs -
+ rm -f /tmp/apsfilter8475/header1
+ rm -rf /tmp/apsfilter8475
+ exit
+ PATH=/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin
+ umask 077
+ trap '' 1 13
+ trap 'rm -rf "$APS_TMPDIR"; exit $return_code;' 0
+ trap 'exit 9' 1 5 7 10 12 15
+ '[' 8 -gt 0 ']'
+ variable=
+ variable=variable
+ '[' variable ']'
+ value=132
+ '[' '!' 132 ']'
+ eval 'variable="$value"'
++ variable=132
+ shift
+ '[' 7 -gt 0 ']'
+ variable=
+ variable=variable
+ '[' variable ']'
+ value=66
+ '[' '!' 66 ']'
+ eval 'variable="$value"'
++ variable=66
+ shift
+ '[' 6 -gt 0 ']'
+ variable=
+ variable=variable
+ '[' variable ']'
+ value=0
+ '[' '!' 0 ']'
+ eval 'variable="$value"'
++ variable=0
+ shift
+ '[' 5 -gt 0 ']'
+ variable=
+ variable=USER
+ '[' USER ']'
+ value=
+ '[' '!' '' ']'
+ shift
+ value=root
+ eval 'USER="$value"'
++ USER=root
+ shift
+ '[' 3 -gt 0 ']'
+ variable=
+ variable=HOST
+ '[' HOST ']'
+ value=
+ '[' '!' '' ']'
+ shift
+ value=aklemm.klemm.gtn.com
+ eval 'HOST="$value"'
++ HOST=aklemm.klemm.gtn.com
+ shift
+ '[' 1 -gt 0 ']'
+ variable=
+ ACCT_FILE=/var/spool/lpd/ascii/acct
+ '[' '' ']'
+ shift
+ '[' 0 -gt 0 ']'
+ unset variable value
+ echo dummy
+ read -r dummy
+ read_r=-r
++++ dirname /usr/local/etc/apsfilter/basedir/bin/apsfilter
+++ dirname /usr/local/etc/apsfilter/basedir/bin
++ dirname /usr/local/etc/apsfilter/basedir
+ CONF_DIR=/usr/local/etc/apsfilter
+ '[' -d /usr/local/etc/apsfilter/basedir ']'
++ eval echo '~root'
+++ echo /root
+ HOMEDIR=/root
+ SPOOLDIR=/var/spool/lpd/ascii
+ '[' /var/spool/lpd/ascii ']'
++ basename /var/spool/lpd/ascii
+ QUEUE=ascii
+ '[' -f /usr/local/etc/apsfilter/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/apsfilterrc
+ '[' -f /usr/local/etc/apsfilter/ascii/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/ascii/apsfilterrc
++ PRINTER=ijs/DESKJET_970
++ PAPERSIZE=a4
++ METHOD=auto
++ QUALITY=medium
++ COLOR=full
++ RESOLUTION=300x300
+ '[' -f /usr/local/etc/apsfilter/ascii/apsfilterrc.root ']'
+ '[' '' ']'
+ '[' -n '' -a -f /root/.apsfilter/apsfilterrc.ascii ']'
+ export PATH
+ : /tmp
+ APS_TMPDIR=/tmp/apsfilter8586
+ rm -rf /tmp/apsfilter8586
+ mkdir -m 711 /tmp/apsfilter8586
+ '[' 0 -ne 0 ']'
+ export TEMP=/tmp/apsfilter8586 TMPDIR=/tmp/apsfilter8586
+ TEMP=/tmp/apsfilter8586
+ TMPDIR=/tmp/apsfilter8586
+ : /usr/bin/awk
+ : medium bi plain full
+ '[' '' ']'
+ '[' '!' '' ']'
+ read pid
+ read -r control_file
+ read -r line
+ value=aklemm.klemm.gtn.com
+ HOST=aklemm.klemm.gtn.com
+ read -r line
+ value=root
+ USER=root
+ read -r line
+ value=aklemm.klemm.gtn.com
+ CLASS=aklemm.klemm.gtn.com
+ read -r line
+ value=dfA001aklemm.klemm.gtn.com
+ read -r line
+ value=dfA001aklemm.klemm.gtn.com
+ read -r line
+ value=/usr/local/share/apsfilter/setup/test.ps
+ FNAME=/usr/local/share/apsfilter/setup/test.ps
+ read -r line
+ : /usr/local/share/apsfilter/setup/test.ps
+ unset pid control_file line value
+ '[' /usr/local/share/apsfilter/setup/test.ps = stdin -o /usr/local/share/apsfilter/setup/test.ps = '(stdin)' -o /usr/local/share/apsfilter/setup/test.ps = '(STDIN)' ']'
+ '[' aklemm.klemm.gtn.com ']'
+ old_ifs= 	

+ IFS=:,
+ set -- aklemm.klemm.gtn.com
+ IFS= 	

+ unset old_ifs
+ echo 'apsfilter warning: unknown option '\''aklemm.klemm.gtn.com'\'''
apsfilter warning: unknown option 'aklemm.klemm.gtn.com'
+ unset option
+ : 10
+ '[' '' ']'
+ COPIES=1
+ '[' 1 -gt 10 ']'
+ '[' 1 = 0 ']'
+ '[' '' ']'
+ LANDSCAPE=
+ PORTRAIT=set
+ '[' '' = short ']'
+ BINDING=long
+ '[' '' ']'
+ :
+ unset PS_NUP
+ '[' -e /usr/local/etc/apsfilter/restrictions ']'
+ '[' -e /usr/local/etc/apsfilter/ascii/restrictions ']'
+ WIDTH_POINTS=595
+ HEIGHT_POINTS=842
+ WIDTH_INCHES=8.26
+ HEIGHT_INCHES=11.69
+ '[' set ']'
+ '[' -f /usr/local/etc/apsfilter/ascii/netware.conf -o -f /usr/local/etc/apsfilter/ascii/lpr.conf ']'
+ unset REMOTE_COPIES
+ DRIVER_SCRIPT=ijs/DESKJET_970
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_970 ']'
++ grep :ijs/DESKJET_970: /usr/local/etc/apsfilter/basedir/driver/MAPPING
++ sed 's/:.*//'
+ DRIVER_SCRIPT=ijs/DESKJET_920
+ '[' -z ijs/DESKJET_920 ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_920 ']'
+ . /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_920
+++ echo ijs/DESKJET_970
+++ sed 's/_/ /g'
++ PRINTER=ijs/DESKJET 970
++ RESOLUTION=300x300
++ params=Quality=0,ColorMode=2,MediaType=0,PenSet=2
++ '[' -n '' -a -n '' ']'
++ GS_FEATURES= -sIjsParams='Quality=0,ColorMode=2,MediaType=0,PenSet=2' -sDeviceManufacturer=HEWLETT-PACKARD
+ GS_FEATURES= -sIjsParams='Quality=0,ColorMode=2,MediaType=0,PenSet=2' -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 970' -sIjsServer=hpijs
+ PRINTER=ijs
+ '[' ijs '!=' PS ']'
+ '[' '' ']'
+ '[' '' ']'
+ unpack print_auto
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter8586/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter8586/header1
+ FILE_TYPE=/tmp/apsfilter8586/header1: PostScript document text conforming at level 3.0 - type EPS
++ echo PostScript document text conforming at level 3.0 - type EPS
++ tr A-Z a-z
+ FILE_TYPE=postscript document text conforming at level 3.0 - type eps
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter8586/header1 -
+ eval print_auto
++ print_auto
++ print_ps
++ local paper gs_cmd
++ '[' '' ']'
++ '[' ijs = PS ']'
++ find_filter gs
++ type gs
++ : /usr/X11R6/lib/X11/fonts/Type1:/var/X11R6/lib/X11/fonts/Type1
++ : /usr/X11R6/lib/X11/fonts/Type1:/var/X11R6/lib/X11/fonts/Type1
++ export GS_FONTPATH GS_LIB
++ '[' a4 = tabloid ']'
++ paper=a4
++ gs_cmd=gs -q -dNOPAUSE -dSAFER -sDEVICE='ijs' 		 -sPAPERSIZE='a4' 		-r'300x300' -sOutputFile=-  -sIjsParams='Quality=0,ColorMode=2,MediaType=0,PenSet=2' -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 970' -sIjsServer=hpijs 		 - 
++ '[' '' ']'
++ ps_postprocessing
++ '[' '' ']'
++ eval ps_set_duplex
+++ ps_set_duplex
+++ local tumble duplex
+++ '[' long = short ']'
+++ tumble=false
+++ '[' '' ']'
+++ duplex=false
+++ /usr/bin/awk '{ print } /^%%EndProlog/ { print "countdictstack\n/psset_mark\n{\n%%BeginFeature: *Duplex false\n  (<<) cvx exec /Duplex (false) cvx exec (>>) cvx exec\n  systemdict /setpagedevice get exec\n%%EndFeature\n%%BeginFeature: *Tumble false\n  (<<) cvx exec /Tumble (false) cvx exec (>>) cvx exec\n  systemdict /setpagedevice get exec\n%%EndFeature\n} stopped\n{ /psset_mark eq { exit } if } loop\ncountdictstack exch sub dup 0 gt\n{\n  { end } repeat\n}{\n  pop\n} ifelse" }'
++ eval gs -q -dNOPAUSE -dSAFER '-sDEVICE='\''ijs'\''' '-sPAPERSIZE='\''a4'\''' '-r'\''300x300'\''' -sOutputFile=- '-sIjsParams='\''Quality=0,ColorMode=2,MediaType=0,PenSet=2'\''' -sDeviceManufacturer=HEWLETT-PACKARD '-sDeviceModel='\''DESKJET' '970'\''' -sIjsServer=hpijs -
+++ gs -q -dNOPAUSE -dSAFER -sDEVICE=ijs -sPAPERSIZE=a4 -r300x300 -sOutputFile=- -sIjsParams=Quality=0,ColorMode=2,MediaType=0,PenSet=2 -sDeviceManufacturer=HEWLETT-PACKARD '-sDeviceModel=DESKJET 970' -sIjsServer=hpijs -
++ print_data
++ local c ncp_print
++ '[' '' ']'
++ '[' 1 = 1 -o -n '' ']'
++ print_copy
++ '[' '' ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/smbclient.conf ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/netware.conf ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/lpr.conf ']'
++ '[' -f /usr/local/etc/apsfilter/ascii/pap.conf ']'
++ cat
+ rm -f /tmp/apsfilter8586/header1
+ rm -rf /tmp/apsfilter8586
+ exit

PGP signature