d_lord on Mon, 12 Aug 2002 14:36:28 +0200 (CEST)(envelope-from owner-apsfilter-help@apsfilter.org)


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

syntax error near unexpected token `|}


Hi,

I'm just getting mad on getting an HP Laserjet Series II
Printer to work.

System:
	Trustix 1.5 Kernel 2.2.20-2tr  
	LPRng-3.6.26
	AFPL Ghostscript 7.04 (2002-01-31)
	Apsfilter (current or stabel same behavior)
	a2ps, flex, psutils, libjpeg, libpng, etc.
	--with-shell=/bin/bash 
	
Problem:
	after the SETUP is ready I can print a testpage
	(Option T). This part is working well.
	If I try to print with lpr I get no Error message
	an sadly no printed output.
	checkpc says everything is ok,
	the permissions are AFAIK ok too. But still no output
	with lpr /etc/fstap

Error/Log/Messages: (sorry for the long lines :-)

lpq -Plp says
Printer: lp@gateway  'laserjet;r=300x300;q=medium;c=gray;p=a4;m=auto'
 Queue: no printable jobs in queue
 Status: job 'root@gateway+822' removed at 14:21:46.255

lpr /etc/fstab; lpq -Plp
Printer: lp@gateway  'laserjet;r=300x300;q=medium;c=gray;p=a4;m=auto'
 Queue: 1 printable job
 Server: pid 832 active
 Unspooler: pid 834 active
 Status: IF filter 'apsfilter' filter msg -
'/usr/local/etc/apsfilter/basedir/bin/apsfilter: line 1220: `           ${PS_NUP:+psnup -q -$PS_NUP
${LANDSCAPE:+$PSNUP_ROTATE}|} \'' at 14:22:36.441
 Rank   Owner/ID                  Class Job Files                 Size Time
active root@gateway+831             A   831 /etc/fstab             836
14:22:36

cat /var/spool/lpd/lp/status.lp
job 'root@gateway+749' removed at 2002-08-12-14:00:47.825 ##
A=root@gateway+749 number=749 process=750
waiting for subserver to exit at 2002-08-12-14:03:06.245 ## A=<NULL>
number=0 process=793
subserver pid 794 starting at 2002-08-12-14:03:06.247 ## A=root@gateway+792
number=792 process=794
accounting at start at 2002-08-12-14:03:06.247 ## A=root@gateway+792
number=792 process=794
opening device '/dev/lp0' at 2002-08-12-14:03:06.247 ## A=root@gateway+792
number=792 process=794
printing job 'root@gateway+792' at 2002-08-12-14:03:06.247 ##
A=root@gateway+792 number=792 process=794
processing 'dfA792gateway.private.lan', size 836, format 'f', IF filter
'apsfilter' at 2002-08-12-14:03:06.247 ## A=root@gateway+792 number=792
process=794
IF filter 'apsfilter' filter msg -
'/usr/local/etc/apsfilter/basedir/bin/apsfilter: line 1220: syntax error near unexpected token `|}'' at
2002-08-12-14:03:06.267 ## A=root@gateway+792 number=792 process=794
IF filter 'apsfilter' filter msg -
'/usr/local/etc/apsfilter/basedir/bin/apsfilter: line 1220: `            ${PS_NUP:+psnup -q -$PS_NUP
${LANDSCAPE:+$PSNUP_ROTATE}|} \'' at 2002-08-12-14:03:06.267 ## A=root@gateway+792 number=792
process=794
IF filter 'apsfilter' filter msg - 'cat: /rc: No such file or directory' at
2002-08-12-14:03:06.270 ## A=root@gateway+792 number=792 process=794
IF filter 'apsfilter' filter finished at 2002-08-12-14:03:06.273 ##
A=root@gateway+792 number=792 process=794
printing finished at 2002-08-12-14:03:06.274 ## A=root@gateway+792
number=792 process=794
accounting at end at 2002-08-12-14:03:06.274 ## A=root@gateway+792
number=792 process=794
finished 'root@gateway+792', status 'JSUCC' at 2002-08-12-14:03:06.274 ##
A=root@gateway+792 number=792 process=794
subserver pid 794 exit status 'JSUCC' at 2002-08-12-14:03:06.274 ## A=<NULL>
number=0 process=793
lp@gateway.private.lan: job 'root@gateway+792' printed at
2002-08-12-14:03:06.275 ## A=root@gateway+792 number=792 process=793
job 'root@gateway+792' removed at 2002-08-12-14:03:06.275 ##
A=root@gateway+792 number=792 process=793

Does anyone have a Solutions and/or suggestions?

Thanks, Daniel Lord

PS.: I've read the thread about the line 1220 problem.
 But I have tried /bin/bash /sbin/bash /bin/sh and nothing changed.
   

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net