Tim<div><br></div><div><div class="gmail_quote">On Mon, Oct 3, 2011 at 6:34 PM, Tim Waugh <span dir="ltr">&lt;<a href="mailto:twaugh@redhat.com">twaugh@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
</div>To print from the command line, use the lp command.<br>
<br>
Tim.<br>
*/<br></blockquote><div><div><br class="Apple-interchange-newline">lp would print a file to the named printer. How do I print or redirect the console output to the printer as is the case in &quot;ls -lha &gt; prn&quot;</div>
<div><br></div><div>And moreover a legacy program is printing to a device lpt1, had the port existed &amp; been connected/redirected to some printer....it would have printed.</div><div><br></div><div>Problem here is that there is no connection between the print output of the software and the lpd/lpr/cups/smb device. The software is NOT modified to recognize the lpr/cups device and therefore is printing to a lpt1 port, as all DOS legacy programs do. What I need to do is somehow capture the output to the lpt1 device &amp; redirect it to the printer setup on linux.</div>
<div><br></div><div>Is it possible to create a directory named lpt1 in /dev and make it behave like a device (whatever behaving like a device is), so that the program output written to it can be redirected to the the linux printer?<br>
</div></div><div><br></div><div>With best regards.</div><div>Sanjay.</div></div></div>