| Stacey Roberts on Wed, 20 Nov 2002 00:06:46 +0100 (CET)(envelope-from owner-apsfilter-help@apsfilter.org) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| UPDATE - Re: Your problem with apsfilter |
Hi James,
I was able to get some output from including "set -x" in the
apsfilter script as you've advised.
After that, I tried sending a text file to print from command line: "lpr
-Php845c test.
The log file generated actually went to the errs.* file in the spool
dir:
# more /var/spool/lpd/hp845c/errs.tEf9AkR
+ 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
+ '[' 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=<snip>.vickiandstacey.com
+ eval 'HOST="$value"'
++ HOST=<snip>.vickiandstacey.com
+ shift
+ '[' 1 -gt 0 ']'
+ variable=
+ ACCT_FILE=/var/spool/lpd/hp845c/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/hp845c
+ '[' /var/spool/lpd/hp845c ']'
++ basename /var/spool/lpd/hp845c
+ QUEUE=hp845c
+ '[' -f /usr/local/etc/apsfilter/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/apsfilterrc
+ '[' -f /usr/local/etc/apsfilter/hp845c/apsfilterrc ']'
+ . /usr/local/etc/apsfilter/hp845c/apsfilterrc
++ PRINTER=ijs/DESKJET_845
++ PAPERSIZE=a4
++ METHOD=auto
++ QUALITY=high
++ COLOR=full
++ RESOLUTION=600x300
+ '[' -f /usr/local/etc/apsfilter/hp845c/apsfilterrc.root ']'
+ '[' '' ']'
+ '[' -n '' -a -f /root/.apsfilter/apsfilterrc.hp845c ']'
+ export PATH
+ : /tmp
+ APS_TMPDIR=/tmp/apsfilter83434
+ rm -rf /tmp/apsfilter83434
+ mkdir -m 711 /tmp/apsfilter83434
+ '[' 0 -ne 0 ']'
+ echo 0
+ export TEMP=/tmp/apsfilter83434 TMPDIR=/tmp/apsfilter83434
+ TEMP=/tmp/apsfilter83434
+ TMPDIR=/tmp/apsfilter83434
+ : /usr/bin/nawk
+ : high bi plain full
+ '[' -n '' -a -z '' ']'
+ '[' '!' '' ']'
+ read pid
+ read -r control_file
+ read -r line
+ value=<snip>.vickiandstacey.com
+ HOST=<snip>.vickiandstacey.com
+ read -r line
+ value=root
+ USER=root
+ read -r line
+ value=<snip>.vickiandstacey.com
+ CLASS=<snip>.vickiandstacey.com
+ read -r line
+ value=dfA010<snip>.vickiandstacey.com
+ read -r line
+ value=dfA010<snip>.vickiandstacey.com
+ read -r line
+ value=test
+ FNAME=test
+ read -r line
+ : test
+ unset pid control_file line value
+ '[' test = stdin -o test = '(stdin)' -o test = '(STDIN)' ']'
+ '[' <snip>.vickiandstacey.com ']'
+ old_ifs=
+ IFS=:,
+ set -- <snip>.vickiandstacey.com
+ IFS=
+ unset old_ifs
+ echo 'apsfilter warning: unknown option
'\''<snip>.vickiandstacey.com'\'''
apsfilter warning: unknown option '<snip>.vickiandstacey.com'
+ unset option
+ : 10
+ '[' '' ']'
+ COPIES=1
+ '[' 1 -gt 10 ']'
+ '[' 1 = 0 ']'
+ '[' '' ']'
+ LANDSCAPE=
+ PORTRAIT=set
+ '[' '' = short ']'
+ BINDING=long
+ '[' '' ']'
+ : '\012\014'
+ : 1
+ unset PS_NUP
+ PSNUP_ROTATE=-l
+ '[' -e /usr/local/etc/apsfilter/restrictions ']'
+ '[' -e /usr/local/etc/apsfilter/hp845c/restrictions ']'
+ WIDTH_POINTS=595
+ HEIGHT_POINTS=842
+ WIDTH_INCHES=8.26
+ HEIGHT_INCHES=11.69
+ '[' set ']'
+ '[' -f /usr/local/etc/apsfilter/hp845c/netware.conf -o -f
/usr/local/etc/apsfilter/hp845c/lpr.conf ']'
+ unset REMOTE_COPIES
+ DRIVER_SCRIPT=ijs/DESKJET_845
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_845 ']'
++ grep :ijs/DESKJET_845:
/usr/local/etc/apsfilter/basedir/driver/MAPPING
++ sed 's/:.*//'
+ DRIVER_SCRIPT=ijs/DESKJET_825
+ '[' -z ijs/DESKJET_825 ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_825 ']'
+ . /usr/local/etc/apsfilter/basedir/driver/ijs/DESKJET_825
+++ echo ijs/DESKJET_845
+++ sed 's/_/ /g'
++ PRINTER=ijs/DESKJET 845
++ RESOLUTION=600x600
++
params=Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=1++ GS_FEATURES= -sIjsParams='Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=1' -sDeviceManufacturer=HEWLETT-PACKARD
+ GS_FEATURES=
-sIjsParams='Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=1' -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 845' -sIjsServer=hpijs -dIjsUseOutputFD
+ PRINTER=ijs
+ '[' ijs '!=' PS ']'
+ '[' '' ']'
+ '[' '' ']'
+ unpack print_auto
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter83434/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter83434/header1
+ FILE_TYPE=/tmp/apsfilter83434/header1: ASCII English text
++ echo ASCII English text
++ tr A-Z a-z
+ FILE_TYPE=ascii english text
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter83434/header1 -
+ eval print_auto
++ print_auto
++ print_ascii
++ local features jobname lang
++ jobname=test
+++ echo test
+++ wc -c
++ '[' 5 -gt 40 ']'
++ find_filter a2ps
++ type a2ps
++ '[' '' ']'
++ : a4
++ features=-1
++ unset LANDSCAPE PS_NUP
++ : --delegate=no -X iso1
++ '[' '' ']'
++ features=-1 --borders=no
++ '[' '' ']'
++ features=-1 --borders=no --no-header
++ features=-1 --borders=no --no-header --prologue=color
++ features=-1 --borders=no --no-header --prologue=color
--highlight-level=normal
++ eval a2ps -M a4 '--center-title="$jobname"' '-b"Printed by $USER from
$HOST"' --delegate=no -X iso1 -1 --borders=no --no-header
--prologue=color --highlight-level=normal -q -o -
+++ a2ps -M a4 --center-title=test '-bPrinted by root from
Demon.vickiandstacey.com' --delegate=no -X iso1 -1 --borders=no
--no-header --prologue=color --highlight-level=normal -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 -dPARANOIDSAFER
-sstdout=%stderr -sDEVICE='ijs'
-sPAPERSIZE='a4' -r'600x600' -sOutputFile=-
-sIjsParams='Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=1' -sDeviceManufacturer=HEWLETT-PACKARD -sDeviceModel='DESKJET 845' -sIjsServer=hpijs -dIjsUseOutputFD -
++ '[' '' ']'
++ 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 -sstdout=%stderr
'-sDEVICE='\''ijs'\''' '-sPAPERSIZE='\''a4'\''' '-r'\''600x600'\'''
-sOutputFile=-
'-sIjsParams='\''Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=1'\''' -sDeviceManufacturer=HEWLETT-PACKARD '-sDeviceModel='\''DESKJET' '845'\''' -sIjsServer=hpijs -dIjsUseOutputFD -
+++ gs -q -dNOPAUSE -dSAFER -dPARANOIDSAFER -sstdout=%stderr
-sDEVICE=ijs -sPAPERSIZE=a4 -r600x600 -sOutputFile=-
-sIjsParams=Quality:Quality=2,Quality:ColorMode=2,Quality:MediaType=2,Quality:PenSet=1 -sDeviceManufacturer=HEWLETT-PACKARD '-sDeviceModel=DESKJET 845' -sIjsServer=hpijs -dIjsUseOutputFD -
++ print_data
++ local c
++ '[' '' ']'
++ '[' 1 = 1 -o -n '' ']'
++ print_copy
++ local rc=0 ncp_print
++ '[' '' ']'
++ '[' -f /usr/local/etc/apsfilter/hp845c/smbclient.conf ']'
++ find_filter smbclient
++ type smbclient
++ . /usr/local/etc/apsfilter/hp845c/smbclient.conf
+++ SMB_SERVER=<Win2K box>
+++ SMB_IP=192.168.1.6
+++ SMB_PRINTER=hp845c
+++ SMB_WORKGROUP=VICKIANDSTACEY
+++ SMB_BUFFER=1400
+++ SMB_FLAGS=-N
+++ SMB_USER=stacey
+++ SMB_PASSWD=<snip>
++ '[' <snip> ']'
++ export PASSWD=<snip>
++ PASSWD=<snip>
++ eval smbclient ''\''//<Win2K Box>/hp845c'\''' -I192.168.1.6 -Ustacey
-WVICKIANDSTACEY -b1400 -N -c ''\''print -'\'''
+++ smbclient //<Win2K Box>/hp845c -I192.168.1.6 -Ustacey
-WVICKIANDSTACEY -b1400 -N -c 'print -'
++ rc=1
++ '[' 1 -ne 0 ']'
++ echo 2
++ exit
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
unable to write to output, fd=6, count=1000: m
<Well., you pretty much know this goes on forever, unless I manually
CTRL -C this and lprm the print job>
Needless to say, nothing happens at the printer - no noises., no
initialization, nothing.
Do let me know if this presents any hints to the source of my problem,
if any, and further tests that you might want to suggest.
Thanks.
Stacey
On Tue, 2002-11-19 at 06:01, James B. Hiller wrote:
> > Not much help, as from my earlier post, nothing is being outout to the
> > log file.
>
> Try doing this:
>
> In the directory where your print spool is (like /var/spool/lpd/lp, or
> whatever, where the other spool files are), first delete the file named
> "log" if it is there, and then do
>
> touch log
>
> and THEN with set -x in apsfilter, try to print something.
>
> I think I just determined that the "log" file has to be there in order
> to be written to.
>
> Also note that I'm pretty sure this thing is appended to, rather than
> written, so you would want to do a cat /dev/null > log after each use if
> you want to keep verbosity from different print jobs intelligibly
> separate.
>
> jbh
--
Stacey Roberts
B.Sc (HONS) Computer Science
Web: www.vickiandstacey.com