Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2007 12:06:24 +0100 (CET)
From:      Wojciech Puchar <wojtek@tensor.3miasto.net>
To:        freebsd-questions@freebsd.org
Subject:   remote printing with ssh/telnet
Message-ID:  <20070224120222.C86607@chylonia.3miasto.net>
In-Reply-To: <001201c757f0$2ba91fa0$3c01a8c0@coolf89ea26645>
References:  <45DED5B6.9020309@t-hosting.hu> <CC493214-CE69-49D6-AF00-C3D62CF8780C@goldmark.org> <001201c757f0$2ba91fa0$3c01a8c0@coolf89ea26645>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
citation from putty documentation:
----
4.3.9 Remote-controlled printing A lot of VT100-compatible terminals 
support printing under control of the remote server. PuTTY supports this 
feature as well, but it is turned off by default. To enable 
remote-controlled printing, choose a printer from the "Printer to send 
ANSI printer output to" drop-down list box. This should allow you to 
select from all the printers you have installed drivers for on your 
computer. Alternatively, you can type the network name of a networked 
printer (for example, \\printserver\printer1) even if you haven't already 
installed a driver for it on your own machine. When the remote server 
attempts to print some data, PuTTY will send that data to the printer raw 
- without translating it, attempting to format it, or doing anything else 
to it. It is up to you to ensure your remote server knows what type of 
printer it is talking to. Since PuTTY sends data to the printer raw, it 
cannot offer options such as portrait versus landscape, print quality, or 
paper tray selection. All these things would be done by your PC printer 
driver (which PuTTY bypasses); if you need them done, you will have to 
find a way to configure your remote server to do them. To disable remote 
printing again, choose "None (printing disabled)" from the printer 
selection list. This is the default state.

------

my question - how to use "remote printing" feature from my console based 
program? is it documented somewhere?

does it work by writing to stdout something like

ESCsomeansicodes..datalength.dataforprinter
?


does it transmit printer data raw (so my program has to take care of 
printer type) or in some predefined standard (like postscript)?

thank you very much?



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20070224120222.C86607>