Kathy Quinlan on Fri, 5 Apr 2002 18:04:18 +0200 (CEST)(envelope-from owner-apsfilter-help@apsfilter.org)


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

apsfilter and freebsd 4.5R


Hi all,

I have rebuilt my server (last HDD had bearing problems) and installed
apsfilter 7.2.2.

I can print to my windows box from the SETUP program.

but on exit I can not print from the command line :o(

The printer on the windows box is a HP Laser Jet 4L.

I am trying to print a 2 line text file called test.txt created with "ee".

Please feel free to ask any questions if I have missed anything out.

Please CC me replies as I am not subscribed to this list.

Regards,

Kat.


Here is an output using aps2file:
serverbsd2# aps2file -D -P hp4l test.txt > log.txt
+ 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=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=ljet4l
++ 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/apsfilter982
+ rm -rf /tmp/apsfilter982
+ mkdir -m 711 /tmp/apsfilter982
+ '[' 0 -ne 0 ']'
+ echo 0
+ export TEMP=/tmp/apsfilter982 TMPDIR=/tmp/apsfilter982
+ TEMP=/tmp/apsfilter982
+ TMPDIR=/tmp/apsfilter982
+ : /usr/bin/awk
+ : medium bi plain full
+ '[' -n '' -a -z '' ']'
+ '[' '!' 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
+ PSNUP_ROTATE=-l
+ '[' -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/apsfilt
er/hp4l/lpr.conf ']'
+ unset REMOTE_COPIES
+ DRIVER_SCRIPT=ljet4l
+ '[' '!' -e /usr/local/etc/apsfilter/basedir/driver/ljet4l ']'
+ '[' -z ljet4l ']'
+ '[' -e /usr/local/etc/apsfilter/basedir/driver/ljet4l ']'
+ . /usr/local/etc/apsfilter/basedir/driver/ljet4l
++ PRINTER=ljet4
++ RESOLUTION=300x300
++ '[' '' ']'
++ '[' -n '' -a -n '' ']'
+ '[' ljet4 '!=' PS ']'
+ '[' '' ']'
+ '[' '' ']'
+ unpack print_auto
+ local HEADER FILE_TYPE unpacker unpacker_opts
+ DEPTH=1
+ HEADER=/tmp/apsfilter982/header1
+ dd bs=1k count=16
++ file /tmp/apsfilter982/header1
+ FILE_TYPE=/tmp/apsfilter982/header1: ASCII English text
++ echo ASCII English text
++ tr A-Z a-z
+ FILE_TYPE=ascii english text
+ unpacker=
+ '[' '' ']'
+ cat /tmp/apsfilter982/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"'
 --delegate=no -X
iso1 -g -1 --borders=no --no-header --prologue=color -q -o -
++ print_ps
+++ a2ps -M a4 --center-title=test.txt '-bPrinted by katinkad from
serverbsd2.ka
qelectronics.dyndns.org' --delegate=no -X
iso1 -g -1 --borders=no --no-header --
prologue=color -q -o -
++ local paper gs_cmd
++ '[' '' ']'
++ '[' ljet4 = 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
++
dNOPAUSE -dSAFER -dPARANOIDSAFER               -sDEVICE='ljet4'
                -sPAPERSIZE='a4' -r'300x300'            -sOutputFile=-   -
++ '[' '' ']'
++ ps_postprocessing
++ eval gs -q -dNOPAUSE -dSAFER -dPARANOIDSAFER '-sDEVICE='\''ljet4'\'''
'-sPAPE
RSIZE='\''a4'\''' '-r'\''300x300'\''' -sOutputFile=- -
++ print_data
+++
gs -q -dNOPAUSE -dSAFER -dPARANOIDSAFER -sDEVICE=ljet4 -sPAPERSIZE=a4 -r300x
300 -sOutputFile=- -
++ local c
++ '[' '' ']'
++ '[' '' ']'
++ eval ps_set_duplex
++ '[' 1 = 1 -o -n '' ']'
+++ ps_set_duplex
++ print_copy
+++ local tray
++ local rc=0 ncp_print
+++ find_filter psset
++ '[' dummy ']'
+++ type psset
++ cat
+++ '[' '' ']'
+++ '[' '' ']'
+++ psset -n -q -s
++ '[' 0 -ne 0 ']'
+ rm -f /tmp/apsfilter982/header1
++ cat /tmp/apsfilter982/rc
+ rc=0
+ rm -rf /tmp/apsfilter982
+ exit 0
serverbsd2#




____________________________________________________________________________
 /"\   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