PRINTER NAME variable?
Jay R. Ashworth
jra at baylink.com
Wed Feb 20 13:50:39 PST 2008
On Wed, Feb 20, 2008 at 04:45:03PM -0500, Kenneth Brody wrote:
> Quoting Jay R. Ashworth (Wed, 20 Feb 2008 16:05:58 -0500):
> >Can the PRINTER NAME command not be used with a variable as the
> >argument?
>
> Yes, the PRINTER commands can take expressions.
I thought so, but the help file *and manual* fail to say. You guys
really need to get the meta-syntax cleaned up in there...
> >I'm pulling a printer name out of getenv, and then saying
> >
> >PRINTER NAME lp
> >
> >but the following
> >
> >FORM "barcode" command isn't printing... anywhere, as car as I can
> >tell. Thoughts?
>
> What are the contents of lp, and what is the corresponding definition
> in pmaint?
lp gets GETENV("LBLPRT") assigned to it, and a show statment says
that's "njaud1".
In config:
printer19=njaud1,nocodes,lp -dnjaud1 -s, NJ Aud label 1
My printers currently go from 1 through 22, inclusive.
njaud1 is a valid Linux printer;
lp -dnjaud1 /tmp/bctest
prints a label.
Cheers,
-- jra
--
Jay R. Ashworth Baylink jra at baylink.com
Designer The Things I Think RFC 2100
Ashworth & Associates http://baylink.pitas.com '87 e24
St Petersburg FL USA http://photo.imageinc.us +1 727 647 1274
Those who cast the vote decide nothing.
Those who count the vote decide everything.
-- (Joseph Stalin)
More information about the Filepro-list
mailing list