| John Reynolds on Tue, 13 Feb 2001 15:40:46 +0100 (CET) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: bug in SETUP |
[ copying apsfilter-help ]
[ On Tuesday, February 13, Michael =?iso-8859-1?Q?Lo=DFin?= wrote: ]
>
> Wierd... This shouldn't happen. Does your shell have an
> internal "expr" command that acts strangely?
>
> Maybe the shell doesn't know the variable substitution
> "${FOO##*bar}" which removes the longest prefix ending
> with "bar".
>
> What happens if you enter this:
>
> $ FOO=`grep "APS.*_BEGIN" /etc/printcap | sort -n`
> $ echo $FOO
> $ echo ${FOO##*printer}
>
> Maybe your printcap file is messed up. Each printer
> definition should start with a line similar to
>
> # APS42_BEGIN:printer42
>
> with no other characters after the last number.
that's probably it. I had an existing printcap file that was created with an
old apsfilter. Probably 1-2 years old. I never upgraded the port because it was
such a hassle to get right in the first place. The other day some alpha
software I was playing with accidentally deleted the apsfilter port and tried
to "update" it. That's when I got the above "expr" error. I moved the printcap
to something else and this "expr" error didn't show up this time.
However, I'm having a heck of a time doing what I want to do. Perhaps you or
someone on the list can help (because honestly the apsfilter.org site wasn't
much help). Previously I had 4 print queues setup in my printcap (abbreviated):
lp|lp640|aps1-stc640p.upp-letter-auto-default|Printer1 stc640p.upp letter auto d
efault:\
:sd=/var/spool/lpd/printer1-stc640p.upp-letter-auto-default:\
lp360|aps2-stc600pl.upp-letter-auto-default|Printer1 stc600pl.upp letter auto de
fault:\
:sd=/var/spool/lpd/printer1-stc600pl.upp-letter-auto-default:\
lp720|aps3-stc600p.upp-letter-auto-default|Printer1 stc600p.upp letter auto defa
ult:\
:sd=/var/spool/lpd/printer1-stc600p.upp-letter-auto-default:\
lp1440|aps4-stc600ih.upp-letter-auto-default|Printer1 stc600ih.upp letter auto d
efault:\
:sd=/var/spool/lpd/printer1-stc600ih.upp-letter-auto-default:\
each of which used a different .upp file (the 600 works with Epson 640). Now
when I go into SETUP all I can choose is 1 printer and the printcap entries
look like this (even though I chose to use a .upp file with uniprint):
lp|Printer1 auto:\
:lp=/dev/lpt0:\
:if=/etc/apsfilter/basedir/bin/apsfilter:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:mx#0:\
:sh:
It was my understanding that previous versions of apsfilter got their
information from the name of the filter used--which paper type, which .upp file
to use, etc. It doesn't look like the above printcap entry will be able to
determine which .upp file to use. How is this accomplished with the new
version?
Please point me to some documentation (I've already read the "handbook") which
might help. How does the current apsfilter mechanisms work?
Thanks!
-Jr
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
John Reynolds Chandler Capabilities Engineering, CDS, Intel Corporation
jreynold@sedona.ch.intel.com My opinions are mine, not Intel's. Running
jjreynold@home.com FreeBSD 4.2-STABLE. FreeBSD: The Power to Serve.
http://www.reynoldsnet.org/ Come join us!!! @ http://www.FreeBSD.org/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=