* LPT1 - Local Printing
@ 2006-12-28 23:21 Stéfano Schotten
2006-12-30 2:07 ` kemas henry
0 siblings, 1 reply; 3+ messages in thread
From: Stéfano Schotten @ 2006-12-28 23:21 UTC (permalink / raw)
To: linux-msdos
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LPT1 - Local Printing
2006-12-28 23:21 LPT1 - Local Printing Stéfano Schotten
@ 2006-12-30 2:07 ` kemas henry
2006-12-30 14:42 ` Rafał Cygnarowski
0 siblings, 1 reply; 3+ messages in thread
From: kemas henry @ 2006-12-30 2:07 UTC (permalink / raw)
To: Stéfano Schotten; +Cc: linux-msdos
Hi,
I also use ltsp 4.2 with dosemu and running DOS-16 application,
but I can print to lpt1.
All that I have to do is change
$_printer = lx300_ws001 (entry in /etc/printcap)
$_printer_command = lpr -l
then try to print to lpt1, hopefully it will work for you
On Thu, 2006-12-28 at 21:21 -0200, Stéfano Schotten wrote:
> 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
> -
> To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LPT1 - Local Printing
2006-12-30 2:07 ` kemas henry
@ 2006-12-30 14:42 ` Rafał Cygnarowski
0 siblings, 0 replies; 3+ messages in thread
From: Rafał Cygnarowski @ 2006-12-30 14:42 UTC (permalink / raw)
To: kemas henry; +Cc: Stéfano Schotten, linux-msdos
Dnia sobota, 30 grudnia 2006 03:07, kemas henry napisał:
> Hi,
>
> I also use ltsp 4.2 with dosemu and running DOS-16 application,
> but I can print to lpt1.
>
> All that I have to do is change
> $_printer = lx300_ws001 (entry in /etc/printcap)
> $_printer_command = lpr -l
> then try to print to lpt1, hopefully it will work for you
He said he has no printacp entry... If he use /dev/lp0 directly and it's ok
for him than easiest way to achieve this is
$_printer_command = "cat - > /dev/lp0"
Of course multiply user printing on this printer will fail becouse of lack of
queue (but who said that queue is always what we need?).
What can I say for addition is how to create simple printcap entry... I use
following printcap file for my OKI needle printer:
-- /etc/printacap --
oki|needle:lf=/var/log/printer:lp=/dev/usb/lp0:sd=/var/spool/lpr/oki:sh:sf:
-- end of file ---
Notice that my printer use /dev/usb/lp0 and /var/sppol/lpr/oki directory MUST
exists. I use lpr from lpr.sf.net for queueing.
--
Rafał Cygnarowski
rafi@pers.pl
-
To unsubscribe from this list: send the line "unsubscribe linux-msdos" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-12-30 14:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-28 23:21 LPT1 - Local Printing Stéfano Schotten
2006-12-30 2:07 ` kemas henry
2006-12-30 14:42 ` Rafał Cygnarowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox