Re: Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

2011-10-03 Thread Kevin J. Cummings
On 10/03/2011 03:11 PM, Sanjay Arora wrote:
> 
> 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 "ls -lha > prn"
> 
> And moreover a legacy program is printing to a device lpt1, had the port
> existed & been connected/redirected to some printerit would have
> printed.
> 
> 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 & redirect it to the printer setup on linux.

prn, lpt1, lpt2, etc are WINDOWS device names.  To print to local
connected printers in unix/linux you can pipe output to lp directly:

ls -lha | lp

or you can send directly to the physical port

ls -lha > /dev/lp0

but that kinda defeats the purpose of having a printer driver, doesn't it?

> 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?
> 
> With best regards.
> Sanjay.
> 
> 
> 
> 


-- 
Kevin J. Cummings
kjch...@verizon.net
cummi...@kjchome.homeip.net
cummi...@kjc386.framingham.ma.us
Registered Linux User #1232 (http://www.xlinuxcounter.net/)
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

2011-10-03 Thread Sanjay Arora
Tim

On Mon, Oct 3, 2011 at 6:34 PM, Tim Waugh  wrote:

>
> To print from the command line, use the lp command.
>
> Tim.
> */
>

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 "ls -lha > prn"

And moreover a legacy program is printing to a device lpt1, had the port
existed & been connected/redirected to some printerit would have
printed.

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 & redirect it to the printer setup on linux.

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?

With best regards.
Sanjay.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

2011-10-03 Thread Tim Waugh
On Mon, 2011-10-03 at 18:00 +0530, Sanjay Arora wrote:

> But it still does not print from CLI applications printing to the
> printer port (In my case, from ls -lha >prn or Harbour compiled legacy
> dbase applications). The output of ls -lha > prn does not land in the
> print queue, even if this printer is the default printer, nor does the
> output of the legacy DOS based programs recompiled on Linux (Harbour
> project...in my case for recompiling old dbase programs).

To print from the command line, use the lp command.

Tim.
*/




signature.asc
Description: This is a digitally signed message part
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

2011-10-03 Thread Sanjay Arora
Tim

On Mon, Oct 3, 2011 at 4:27 PM, Tim Waugh  wrote:

> First of all, what are you using to set up the printer?  "Printers GUI"
> could refer to several different things...
>
> I am using system-config-printerSelected Windows Printer via SAMBA,
keyed in the widows samba printer uri, keyed in authentication details &
clicked verifythe printer verified as accessible.

The way to do what you want is to use the system-config-printer
> application.  Set up the SMB queue, and for the driver choose "Generic"
> as the manufacturer and "Raw Queue" as the model.
>
>
Upon selection of Printer Driver as Epson 24 pin Generic AND upon selection
of Manufaturer as Generic & Raw Queue as model, the printer gets installed
and does print a test page. It is getting Enabled now...Thanks!

But it still does not print from CLI applications printing to the printer
port (In my case, from ls -lha >prn or Harbour compiled legacy dbase
applications). The output of ls -lha > prn does not land in the print queue,
even if this printer is the default printer, nor does the output of the
legacy DOS based programs recompiled on Linux (Harbour project...in my case
for recompiling old dbase programs).

Hope you can help me troubleshoot further.

With best regards & thanks.
Sanjay.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Re: Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

2011-10-03 Thread Tim Waugh
On Mon, 2011-10-03 at 14:34 +0530, Sanjay Arora wrote:

> While I can create the SMB printer from the Printers GUI screen, it
> does not get enabled or even print a test page. I think the issue is
> that the software prints to a device that does not exist. I think I
> need to create a device file & redirect it to the smb share or
> something similarbut maybe I'm wrong.

No, that doesn't sound right.

First of all, what are you using to set up the printer?  "Printers GUI"
could refer to several different things...

The way to do what you want is to use the system-config-printer
application.  Set up the SMB queue, and for the driver choose "Generic"
as the manufacturer and "Raw Queue" as the model.

Tim.
*/




signature.asc
Description: This is a digitally signed message part
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


Printing from new PC without LPT/Serial port to Dot Matrix Printer on Smb Share

2011-10-03 Thread Sanjay Arora
Hello all

I am trying to cnfigure LPD/LPR or any other raw printing method (non-cups)
to print from a Fedora 15 machine that does not have a serial or parallel
port.

While I can create the SMB printer from the Printers GUI screen, it does not
get enabled or even print a test page. I think the issue is that the
software prints to a device that does not exist. I think I need to create a
device file & redirect it to the smb share or something similarbut maybe
I'm wrong.

Can someone please tell me what to do, to enable printing to a non-existant
lpt1, which is redirected to a remote windows machine having a shared dot
matrix printer.

With best regards & thanks.
Sanjay.
-- 
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines