From owner-freebsd-questions@FreeBSD.ORG Sat Feb 24 11:23:12 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE3AE16A403 for ; Sat, 24 Feb 2007 11:23:12 +0000 (UTC) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (chylonia.3miasto.net [83.12.228.78]) by mx1.freebsd.org (Postfix) with ESMTP id 8319913C4A6 for ; Sat, 24 Feb 2007 11:23:09 +0000 (UTC) (envelope-from wojtek@tensor.3miasto.net) Received: from chylonia.3miasto.net (localhost [127.0.0.1]) by chylonia.3miasto.net (8.13.8/8.13.4) with ESMTP id l1OB6TYc087125 for ; Sat, 24 Feb 2007 12:06:29 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) Received: from localhost (wojtek@localhost) by chylonia.3miasto.net (8.13.8/8.13.4/Submit) with ESMTP id l1OB6PYT087112 for ; Sat, 24 Feb 2007 12:06:28 +0100 (CET) (envelope-from wojtek@tensor.3miasto.net) X-Authentication-Warning: chylonia.3miasto.net: wojtek owned process doing -bs Date: Sat, 24 Feb 2007 12:06:24 +0100 (CET) From: Wojciech Puchar X-X-Sender: wojtek@chylonia.3miasto.net To: freebsd-questions@freebsd.org In-Reply-To: <001201c757f0$2ba91fa0$3c01a8c0@coolf89ea26645> Message-ID: <20070224120222.C86607@chylonia.3miasto.net> References: <45DED5B6.9020309@t-hosting.hu> <001201c757f0$2ba91fa0$3c01a8c0@coolf89ea26645> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: remote printing with ssh/telnet X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Feb 2007 11:23:12 -0000 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?