From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?St=E9fano_Schotten?= Subject: LPT1 - Local Printing Date: Thu, 28 Dec 2006 21:21:23 -0200 Message-ID: <45945173.90608@amti.com.br> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-msdos-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-msdos@vger.kernel.org Hi all; I'm having a issue due printing in a LTSP terminal with DOSEMU. I have some DOS-16 applications that print at LPT1 (and only LPT1). I don't have at the client the lp, lpr, not even printcap. I'm trying to redirect that right thru /dev/lp0, I already changed the $_printer_program to a shell script home-made, but I can't get the variables and data sending to redirect to device. Like: echo ASDF | lpr -> prints ASDF to printer in /etc/printcap I made a program "print" that does that: echo ASDF | print -> prints ASDF to printer /dev/lp0 How can I get the "echo ASDF" that DOSEMU sends? Does someone can help me on that? I already tried to hack out the code but couldn't find the printers sessions. Stefano