| Glenn Johnson on Wed, 22 May 2002 19:41:38 +0200 (CEST)(envelope-from owner-apsfilter-help@apsfilter.org) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| apsfilter does not print to samba share |
System info: OS: FreeBSD 4.6-RC Samba: Version 2.2.4 apsfilter: 7.2.2 Windows: Windows XP I have a printer setup on my Windows machine and it is properly set up for sharing. I set up apsfilter and the test page prints fine. I set it up to use the printer on the Windows machine with a guest account. I can print using smbclient from the command line. But I can NOT print using apsfilter. When I print to the printer, using lp, this should call the apsfilter script which should then call smbclient. I get the following in '/var/log/lpd-errs': May 22 12:12:57 node1 lpd[17774]: lp: job could not be printed (cfA031node1.cluster.srrc.usda.gov) Can someone please help with this? Thanks. Here is the output of 'aps2file -D' trying to print a text file: + PATH=/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin + umask 077 + trap '' 1 13 + trap 'rc=`cat "$APS_TMPDIR/rc"`; rm -rf "$APS_TMPDIR"; exit $rc' 0 + trap 'echo 9 >"$APS_TMPDIR/rc"; exit' 1 5 7 10 12 15 + '[' 3 -gt 0 ']' + variable= + variable=HOST + '[' HOST ']' + value=node1.cluster.srrc.usda.gov + '[' '!' node1.cluster.srrc.usda.gov ']' + eval 'HOST="$value"' ++ HOST=node1.cluster.srrc.usda.gov + shift + '[' 2 -gt 0 ']' + variable= + variable=USER + '[' USER ']' + value=glenn + '[' '!' glenn ']' + eval 'USER="$value"' ++ USER=glenn + shift + '[' 1 -gt 0 ']' + variable= + variable=JOB + '[' JOB ']' + value=.cshrc + '[' '!' .cshrc ']' + eval 'JOB="$value"' ++ JOB=.cshrc + 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 '~glenn' +++ echo /home/glenn + HOMEDIR=/home/glenn + 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=stp/escp2-c80 ++ PAPERSIZE=letter ++ METHOD=auto ++ QUALITY=high ++ COLOR=full ++ RESOLUTION=720x720 + '[' -f /usr/local/etc/apsfilter/lp/apsfilterrc.glenn ']' + '[' dummy ']' + USE_USER_CODE=set + '[' -n set -a -f /home/glenn/.apsfilter/apsfilterrc.lp ']' + export PATH + : /tmp + APS_TMPDIR=/tmp/apsfilter17085 + rm -rf /tmp/apsfilter17085 + mkdir -m 711 /tmp/apsfilter17085 + '[' 0 -ne 0 ']' + echo 0 + export TEMP=/tmp/apsfilter17085 TMPDIR=/tmp/apsfilter17085 + TEMP=/tmp/apsfilter17085 + TMPDIR=/tmp/apsfilter17085 + : /usr/bin/awk + : high bi plain full + '[' -n '' -a -z '' ']' + '[' '!' dummy ']' + '[' .cshrc = stdin -o .cshrc = '(stdin)' -o .cshrc = '(STDIN)' ']' + '[' '' ']' + : 10 + '[' '' ']' + COPIES=1 + '[' 1 -gt 10 ']' + '[' 1 = 0 ']' + '[' '' ']' + LANDSCAPE= + PORTRAIT=set + '[' '' = short ']' + BINDING=long + '[' '' ']' + : + unset PS_NUP + PSNUP_ROTATE=-l + '[' -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=stp/escp2-c80 + '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/stp/escp2-c80 ']' ++ grep :stp/escp2-c80: /usr/local/etc/apsfilter/basedir/driver/MAPPING ++ sed 's/:.*//' + DRIVER_SCRIPT=stp/escp2-c70 + '[' -z stp/escp2-c70 ']' + '[' -e /usr/local/etc/apsfilter/basedir/driver/stp/escp2-c70 ']' + . /usr/local/etc/apsfilter/basedir/driver/stp/escp2-c70 ++ RESOLUTION=720x720 ++ '[' bi = uni ']' ++ sweep= ++ GS_FEATURES= -sQuality=720sw -dImageType=1 ++ GS_FEATURES= -sQuality=720sw -dImageType=1 -dColor=1 ++ GS_FEATURES= -sQuality=720sw -dImageType=1 -dColor=1 -sMediaType=Plain + GS_MODEL=escp2-c80 + PRINTER=stp + '[' stp '!=' PS ']' + '[' '' ']' + '[' '' ']' + unpack print_auto + local HEADER FILE_TYPE unpacker unpacker_opts + DEPTH=1 + HEADER=/tmp/apsfilter17085/header1 + dd bs=1k count=16 ++ file /tmp/apsfilter17085/header1 + FILE_TYPE=/tmp/apsfilter17085/header1: ASCII English text ++ echo ASCII English text ++ tr A-Z a-z + FILE_TYPE=ascii english text + unpacker= + '[' '' ']' + cat /tmp/apsfilter17085/header1 - + eval print_auto ++ print_auto ++ print_ascii ++ local features jobname lang ++ jobname=.cshrc +++ echo .cshrc +++ wc -c ++ '[' 7 -gt 40 ']' ++ find_filter a2ps ++ type a2ps ++ '[' '' ']' ++ : letter ++ 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 ++ print_ps ++ 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 ++ '[' letter = tabloid ']' ++ paper=letter ++ gs_cmd=gs -q -dNOPAUSE -dSAFER -dPARANOIDSAFER -sDEVICE='stp' -sModel='escp2-c80' -sPAPERSIZE='letter' -r'720x720' -sOutputFile=- -sQuality=720sw -dImageType=1 -dColor=1 -sMediaType=Plain - ++ '[' '' ']' ++ eval a2ps -M letter '--center-title="$jobname"' '-b"Printed by $USER from $HOST"' --delegate=no -X iso1 -g -1 --borders=no --no-header --prologue=color -q -o - +++ a2ps -M letter --center-title=.cshrc '-bPrinted by glenn from node1.cluster.srrc.usda.gov' --delegate=no -X iso1 -g -1 --borders=no --no-header --prologue=color -q -o - ++ ps_postprocessing ++ '[' '' ']' ++ eval ps_set_duplex +++ ps_set_duplex +++ local tray +++ find_filter psset +++ type psset +++ '[' '' ']' +++ '[' '' ']' +++ psset -n -q -s ++ eval gs -q -dNOPAUSE -dSAFER -dPARANOIDSAFER '-sDEVICE='\''stp'\''' '-sModel='\''escp2-c80'\''' '-sPAPERSIZE='\''letter'\''' '-r'\''720x720'\''' -sOutputFile=- -sQuality=720sw -dImageType=1 -dColor=1 -sMediaType=Plain - +++ gs -q -dNOPAUSE -dSAFER -dPARANOIDSAFER -sDEVICE=stp -sModel=escp2-c80 -sPAPERSIZE=letter -r720x720 -sOutputFile=- -sQuality=720sw -dImageType=1 -dColor=1 -sMediaType=Plain - ++ print_data ++ local c ++ '[' '' ']' ++ '[' 1 = 1 -o -n '' ']' ++ print_copy ++ local rc=0 ncp_print ++ '[' dummy ']' ++ cat ++ '[' 0 -ne 0 ']' + rm -f /tmp/apsfilter17085/header1 ++ cat /tmp/apsfilter17085/rc + rc=0 + rm -rf /tmp/apsfilter17085 + exit 0 -- Glenn Johnson USDA, ARS, SRRC Phone: (504) 286-4252 New Orleans, LA 70124 e-mail: gjohnson@srrc.ars.usda.gov