[ale] Perl Print Question

Bob Kruger bkruger at mindspring.com
Thu Apr 8 17:45:16 EDT 1999


Anyone have any hints or examples on using the the lpd daemon and lpr with
perl?

For example, when in the past when I wanted to output something to the
printer, I usually included the line of:

open ( LPR, ">tty");

and then used printf(LPR) or print(LPR) to output the results.

I now have additional printers on the network, and would like to be able to
take advantage of capability to route in my printcap file.  If I had a
printer on another server called HP3 with the name HP3 in the local
printcap file, could I just do following:

open ( LPR -PHP3 ">tty") ;

If not, has anyone got any hints on how to use the different printers
available in the princap file?

Bob






More information about the Ale mailing list