| Kathy Quinlan on Thu, 28 Mar 2002 09:11:04 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Problems printing under FreeBSD 4.5R |
Hi all,
I am having a problem printing using apsfilter. The setup program worked
well, but I am getting no output from the HP LaserJet 4L on a windows 2000
Pro machine.
I am trying to print a little text file (created with ee)
Bellow is the result of the debug using aps2file
Hope someone can see something stupid, as I have been on this for 2 days now
so I must be over looking something.
Regards,
Kat.
serverbsd2# aps2file -D -P hp4l /usr/home/katinkad/test.txt
+ 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=serverbsd2.kaqelectronics.dyndns.org
+ '[' '!' serverbsd2.kaqelectronics.dyndns.org ']'
+ eval 'HOST="$value"'
++ HOST=serverbsd2.kaqelectronics.dyndns.org
+ shift
+ '[' 2 -gt 0 ']'
+ variable=
+ variable=USER
+ '[' USER ']'
+ value=katinkad
+ '[' '!' katinkad ']'
+ eval 'USER="$value"'
++ USER=katinkad
+ shift
+ '[' 1 -gt 0 ']'
+ variable=
+ variable=JOB
+ '[' JOB ']'
+ value=test.txt
+ '[' '!' test.txt ']'
+ eval 'JOB="$value"'
++ JOB=test.txt
+ 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 '~katinkad'
+++ echo /home/katinkad
+ HOMEDIR=/home/katinkad
+ SPOOLDIR=hp4l
+ '[' hp4l ']'
++ basename hp4l
+ QUEUE=hp4l
+ '[' -f /usr/local/etc/apsfilter/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/apsfilterrc
+ '[' -f /usr/local/etc/apsfilter/hp4l/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/hp4l/apsfilterrc
++ PRINTER=stp/pcl-4l
++ PAPERSIZE=a4
++ METHOD=auto
++ QUALITY=medium
++ COLOR=full
++ RESOLUTION=300x300
+ '[' -f /usr/local/etc/apsfilter/hp4l/apsfilterrc.katinkad ']'
+ '[' dummy ']'
+ USE_USER_CODE=set
+ '[' -n set -a -f /home/katinkad/.apsfilter/apsfilterrc.hp4l ']'
+ export PATH
+ : /tmp
+ APS_TMPDIR=/tmp/apsfilter405
+ rm -rf /tmp/apsfilter405
+ mkdir -m 711 /tmp/apsfilter405
+ '[' 0 -ne 0 ']'
+ export TEMP=/tmp/apsfilter405 TMPDIR=/tmp/apsfilter405
+ TEMP=/tmp/apsfilter405
+ TMPDIR=/tmp/apsfilter405
+ : /usr/bin/awk
+ : medium bi plain full
+ '[' '' ']'
+ '[' '!' dummy ']'
+ '[' test.txt = stdin -o test.txt = '(stdin)' -o test.txt = '(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/hp4l/restrictions ']'
+ WIDTH_POINTS=595
+ HEIGHT_POINTS=842
+ WIDTH_INCHES=8.26
+ HEIGHT_INCHES=11.69
+ '[' set ']'
+ '[' -f /usr/local/etc/apsfilter/hp4l/netware.conf -o -f
/usr/local/etc/apsfilter/hp4l/lpr.conf ']'
+ unset REMOTE_COPIES
+ DRIVER_SCRIPT=stp/pcl-4l
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/stp/pcl-4l ']'
++ grep :stp/pcl-4l: /usr/local/etc/apsfilter/basedir/driver/MAPPING
++ sed 's/:.*//'
+ DRIVER_SCRIPT=stp/lexmark-4076
+ '[' -z stp/lexmark-4076 ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/stp/lexmark-4076 ']'
+ . /usr/local/etc/apsfilter/basedir/driver/stp/lexmark-4076
++ RESOLUTION=300x300
++ GS_FEATURES= -sQuality=300dpi -dImageType=1
++ GS_FEATURES= -sQuality=300dpi -dImageType=1 -dColor=1
++ GS_FEATURES= -sQuality=300dpi -dImageType=1 -dColor=1 -sMediaType=Plain
+ GS_MODEL=pcl-4l
+ PRINTER=stp
+ '[' stp '!=' PS ']'
+ '[' '' ']'
+ '[' '' ']'
+ unpack print_auto
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter405/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter405/header1
+ FILE_TYPE=/tmp/apsfilter405/header1: ASCII English text
++ echo ASCII English text
++ tr A-Z a-z
+ FILE_TYPE=ascii english text
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter405/header1 -
+ eval print_auto
++ print_auto
++ print_ascii
++ local features jobname lang
++ jobname=test.txt
+++ echo test.txt
+++ wc -c
++ '[' 9 -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 -
++ print_ps
+++ a2ps -M a4 --center-title=test.txt '-bPrinted by katinkad from
serverbsd2.kaqelectronics.dyndns.org' -1 --borders=no --no-header --prologue
=color -q -o -
++ local paper gs_cmd
++ '[' '' ']'
++ '[' stp = 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
++
NOPAUSE -dSAFER -sDEVICE='stp' -sModel='pcl-4l' -sPAPERSIZE='
a4' -r'300x300' -sOutputFile=- -sQuality=300dpi -dImageType=1
-dColor=1 -sMediaType=Plain -
++ '[' '' ']'
++ ps_postprocessing
++ eval gs -q -dNOPAUSE -dSAFER '-sDEVICE='\''stp'\'''
'-sModel='\''pcl-4l'\''' '-sPAPERSIZE='\''a4'\'''
'-r'\''300x300'\''' -sOutputFile=- -sQuality=300dpi -dImageType=1 -dColor=1
-sMediaType=Plain -
++ print_data
++ '[' '' ']'
+++
gs -q -dNOPAUSE -dSAFER -sDEVICE=stp -sModel=pcl-4l -sPAPERSIZE=a4 -r300x300
-sOutputFile=- -sQuality=300dpi -dImageType=1 -dColor=1 -sMediaType=Plain -
++ local c ncp_print
++ eval ps_set_duplex
++ '[' '' ']'
+++ ps_set_duplex
++ '[' 1 = 1 -o -n '' ']'
+++ local tumble duplex
++ print_copy
+++ '[' long = short ']'
++ '[' dummy ']'
+++ tumble=false
++ cat
+++ '[' '' ']'
+++ 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" }'
Plain is not a valid media type
Error: /rangecheckAFPL Ghostscript in --.outputpage--
Operand stack:
1 true
Execution stack:
%interp_exit
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- --nostringval-- --nostringval-- false
1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop
.runexec2 --nostringval-- --nostringval-- --nostringval-- 2
%stopped_push --nostringval-- 0 4
%oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostr
ingval--
Dictionary stack:
--dict:1020/1123(ro)(G)-- --dict:0/20(G)-- --dict:68/200(L)-- --dic
t:85/200(L)--
Current allocation mode is local
7.03: Unrecoverable error, exit code 1
+ rm -f /tmp/apsfilter405/header1
+ rm -rf /tmp/apsfilter405
+ exit
____________________________________________________________________________
/"\ ASCII Ribbon Campaign | K.A.Q. Electronics
\ / - NO HTML/RTF in e-mail | Software and Electronic Engineering
X - NO Word docs in e-mail | Perth Western Australia
/ \ | Ph +61 419 923 731
____________________________________________________________________________
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.342 / Virus Database: 189 - Release Date: 14/03/2002