HylaFAX The world's most advanced open source fax server

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

Re: [hylafax-users] how to print on different printers



On Monday 22 January 2007 09:09, hylafax@xxxxxxxxxxx wrote:
> Probably a really dumb question, but the examples in the man pages,
> howto's etc. I found all invoke tiff2ps directly.
>
> How would the above work with that ttyS0) PRINTER=printer-A;; doesn't seem
> to invoke tiff2ps at all?
>
> Or is this line "ttyS0) PRINTER=printer-A;;" simply defining the contents
> of the variable PRINTER?

Yes, that's exactly what it's doing.  In bash, variable names are prefixed 
with a $ sign to read out their values; as seen in the later line

> >  tiff2ps -a $FILE | lpr -P $PRINTER

This is looking for variables FILE and PRINTER, and the interpreter will 
substitute their values when it calls up the tiff2ps command.

--
AJS

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions