in reply to Printing to Local Windows Printer

Depends on your telnet client. Some clients allow a terminal escape code that diverts output to a printer or file. However, it has been so long since I have had a need to do this I am quite rusty.

So you would do....

startprint; cat file; stopprint

... where startprint and stopprint generate the appropriate codes. Of course, this is assuming that file is a text file.

Replies are listed 'Best First'.
Re: Re: Printing to Local Windows Printer
by Anonymous Monk on Aug 28, 2003 at 13:48 UTC
    There is indeed a printer output option in my telnet client. What I am doing is opening a printer port in unix and printing to a specific printer. Here is the initial line: open (LPR,"|lp -dpclaser -s"); where "pclaser" is the printer name. We also have some "C" programs running here. You can select the "local" option in these programs and the output will be to the printer connected to the telnet client.

      If you want to / are able to set up a print queue for your local printer, there are lpd daemons available for win32.

      However, the way that programs print to the local printer without setting up a print queue is to use the terminal's escape sequences to divert output on the local side (your telnet client) to the printer. See my above post.