James B. Hiller on Fri, 22 Feb 2002 05:28:59 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org)


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

Re: Need help restoring an old feature


> On 20-Feb-02 James B. Hiller wrote:
> >> I think it would be best if you'd create a debugging log file
> >> of one printing attempt, just to see what exactly is going on.
> >> Basically you do "aps2file -D 2>log.txt >/dev/null yourfilename"
> >> (the handbook has more info on this) and post "log.txt" here.
> > 
> > I don't know how to do this.  Recall that I noticed the behavior change
> > in the printing of email.  In particular, am using elm as the MUA.  So of
> > course elm is generating the print job, not me, and I don't know how to
> > wrap this invocation you give around the act of elm sending the print for
> > handling.
> 
> I'm sure elm has a command to save the message to a file,
> but now that you've captured "df..." (data file), just use
> that file for aps2file input.

Ok, got the df captured, included as attachment.

Sorry for the delayed return; got stuck at work way late last night.

jbh
+ 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
+ '[' 3 -gt 0 ']'
+ variable=
+ variable=HOST
+ '[' HOST ']'
+ value=bassett.home.org
+ '[' '!' bassett.home.org ']'
+ eval 'HOST="$value"'
++ HOST=bassett.home.org
+ shift
+ '[' 2 -gt 0 ']'
+ variable=
+ variable=USER
+ '[' USER ']'
+ value=root
+ '[' '!' root ']'
+ eval 'USER="$value"'
++ USER=root
+ shift
+ '[' 1 -gt 0 ']'
+ variable=
+ variable=JOB
+ '[' JOB ']'
+ value=dfA018bassett
+ '[' '!' dfA018bassett ']'
+ eval 'JOB="$value"'
++ JOB=dfA018bassett
+ 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=lp
+ '[' lp ']'
++ basename lp
+ QUEUE=lp
+ '[' -f /usr/local/etc/apsfilter/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/apsfilterrc
+ '[' -f /usr/local/etc/apsfilter/lp/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/lp/apsfilterrc
++ PRINTER=pcl3/hpdj520
++ PAPERSIZE=letter
++ METHOD=auto
++ QUALITY=medium
++ COLOR=full
++ RESOLUTION=300x300
+ '[' -f /usr/local/etc/apsfilter/lp/apsfilterrc.root ']'
+ '[' dummy ']'
+ USE_USER_CODE=set
+ '[' -n set -a -f /root/.apsfilter/apsfilterrc.lp ']'
+ export PATH
+ : /tmp
+ APS_TMPDIR=/tmp/apsfilter4935
+ rm -rf /tmp/apsfilter4935
+ mkdir -m 711 /tmp/apsfilter4935
+ '[' 0 -ne 0 ']'
+ export TEMP=/tmp/apsfilter4935 TMPDIR=/tmp/apsfilter4935
+ TEMP=/tmp/apsfilter4935
+ TMPDIR=/tmp/apsfilter4935
+ : /usr/bin/gawk
+ : medium bi plain full
+ '[' '' ']'
+ '[' '!' dummy ']'
+ '[' dfA018bassett = stdin -o dfA018bassett = '(stdin)' -o dfA018bassett = '(STDIN)' ']'
+ '[' '' ']'
+ : 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/lp/restrictions ']'
+ WIDTH_POINTS=612
+ HEIGHT_POINTS=792
+ WIDTH_INCHES=8.5
+ HEIGHT_INCHES=11
+ '[' set ']'
+ '[' -f /usr/local/etc/apsfilter/lp/netware.conf -o -f /usr/local/etc/apsfilter/lp/lpr.conf ']'
+ unset REMOTE_COPIES
+ DRIVER_SCRIPT=pcl3/hpdj520
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/pcl3/hpdj520 ']'
++ grep :pcl3/hpdj520: /usr/local/etc/apsfilter/basedir/driver/MAPPING
++ sed 's/:.*//'
+ DRIVER_SCRIPT=pcl3/hpdj
+ '[' -z pcl3/hpdj ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/pcl3/hpdj ']'
+ . /usr/local/etc/apsfilter/basedir/driver/pcl3/hpdj
++ RESOLUTION=300x300
++ GS_FEATURES= -sPrintQuality=0
++ GS_FEATURES= -sPrintQuality=0 -sMedium=0
+ GS_FEATURES= -sPrintQuality=0 -sMedium=0 -sSubdevice=hpdj520
+ PRINTER=pcl3
+ '[' pcl3 '!=' PS ']'
+ '[' '' ']'
+ '[' '' ']'
+ unpack print_auto
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter4935/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter4935/header1
+ FILE_TYPE=/tmp/apsfilter4935/header1: news or mail text
++ echo news or mail text
++ tr A-Z a-z
+ FILE_TYPE=news or mail text
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter4935/header1 -
+ eval print_auto
++ print_auto
++ print_ascii
++ local features jobname lang
++ jobname=dfA018bassett
+++ echo dfA018bassett
+++ wc -c
++ '[' 14 -gt 40 ']'
++ find_filter a2ps
++ type a2ps
++ '[' '' ']'
++ : letter
++ A2PS_PAPERSIZE=letterdj
++ features=-1
++ unset LANDSCAPE PS_NUP
++ lang=mail
++ : --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 letterdj '--center-title="$jobname"' '-b"Printed by $USER from $HOST"' --delegate=no -X iso1 -g -1 --borders=no --no-header --prologue=color -Email -q -o -
++ print_ps
++ local paper gs_cmd
+++ a2ps -M letterdj --center-title=dfA018bassett '-bPrinted by root from bassett.home.org' --delegate=no -X iso1 -g -1 --borders=no --no-header --prologue=color -Email -q -o -
++ '[' '' ']'
++ '[' pcl3 = 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
++ '[' letter = tabloid ']'
++ paper=letter
++ gs_cmd=gs -q -dNOPAUSE -dSAFER -sDEVICE='pcl3' 		 -sPAPERSIZE='letter' 		-r'300x300' -sOutputFile=-  -sPrintQuality=0 -sMedium=0 -sSubdevice=hpdj520 		 - 
++ '[' '' ']'
++ ps_postprocessing
++ '[' '' ']'
++ eval ps_set_duplex
+++ ps_set_duplex
+++ local tumble duplex
+++ '[' long = short ']'
+++ tumble=false
+++ '[' '' ']'
+++ duplex=false
+++ /usr/bin/gawk '{ 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='\''pcl3'\''' '-sPAPERSIZE='\''letter'\''' '-r'\''300x300'\''' -sOutputFile=- -sPrintQuality=0 -sMedium=0 -sSubdevice=hpdj520 -
+++ gs -q -dNOPAUSE -dSAFER -sDEVICE=pcl3 -sPAPERSIZE=letter -r300x300 -sOutputFile=- -sPrintQuality=0 -sMedium=0 -sSubdevice=hpdj520 -
++ print_data
++ local c ncp_print
++ '[' '' ']'
++ '[' 1 = 1 -o -n '' ']'
++ print_copy
++ '[' dummy ']'
++ cat
+ rm -f /tmp/apsfilter4935/header1
+ rm -rf /tmp/apsfilter4935
+ exit