Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* [Q] Printing to a network printer
@ 1995-12-19  5:00 Shlomo Hakim
  1995-12-20  5:00 ` Fred Tittaferrante
  0 siblings, 1 reply; 3+ messages in thread
From: Shlomo Hakim @ 1995-12-19  5:00 UTC (permalink / raw)
  Cc: Shlomo_Hakim

I have an HP LaserJet 4M Plus printer connected directly to the network and shared between 
PC network (Novell), OpenVMS workstations and of course DEC UNIX workstations running v3.2C.

When I'm printing a simple ASCII file from the UNIX WS the printer implements on the <LF> 
characters and not the <CR> and the result look something like:

This is 
        NOT how I want
                       to see the printout!!!!

I would expect this kind of behaviore since UNIX end-of-line is <LF> character while in DOS 
it is <CR><LF> and since most of the printing is done from PCs I cannot force the printer to 
add the <CR> at all times. I've tried to add my own filter in the /etc/printcap file so it 
will add to correct printer commands but... and this is my question, for some very 
mysteriouse reasons the filter is totally ignored!

I've tried contacting DEC support but they did not have any answer for me.

Any ideas???

Thanks
Shlomo H.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Q] Printing to a network printer
  1995-12-19  5:00 [Q] Printing to a network printer Shlomo Hakim
@ 1995-12-20  5:00 ` Fred Tittaferrante
  1995-12-21  5:00   ` Marek Pola
  0 siblings, 1 reply; 3+ messages in thread
From: Fred Tittaferrante @ 1995-12-20  5:00 UTC (permalink / raw)


Shlomo Hakim <Shlomo_Hakim@comverse.com> wrote:
>I have an HP LaserJet 4M Plus printer connected directly to the network and shared between 
>PC network (Novell), OpenVMS workstations and of course DEC UNIX workstations running v3.2C.
>
>When I'm printing a simple ASCII file from the UNIX WS the printer implements on the <LF> 
>characters and not the <CR> and the result look something like:
>
>This is 
>        NOT how I want
>                       to see the printout!!!!
>
>I would expect this kind of behaviore since UNIX end-of-line is <LF> character while in DOS 
>it is <CR><LF> and since most of the printing is done from PCs I cannot force the printer to 
>add the <CR> at all times. I've tried to add my own filter in the /etc/printcap file so it 
>will add to correct printer commands but... and this is my question, for some very 
>mysteriouse reasons the filter is totally ignored!
>
>I've tried contacting DEC support but they did not have any answer for me.
>
>Any ideas???
>
>Thanks
>Shlomo H.


Try taking a look at the 'fs' parameter in your printcap file.  I have mine set to 
23.  This is a bitmapped parameter.  The 2 portion of this parameter does the 
following (taken from lprsetup help screen):

CRMOD        0000020    Map CR into LF; echo LF or CR as CR-LF


Fred Tittaferrante
Systems Officer
Ontario Ministry of Natural Resources
Geraldton Area Office
tittaff@gov.on.ca 




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Q] Printing to a network printer
  1995-12-20  5:00 ` Fred Tittaferrante
@ 1995-12-21  5:00   ` Marek Pola
  0 siblings, 0 replies; 3+ messages in thread
From: Marek Pola @ 1995-12-21  5:00 UTC (permalink / raw)


In article <4b9ush$3ap@govonca3.gov.on.ca>, tittaff@gov.on.ca says...
>
>Shlomo Hakim <Shlomo_Hakim@comverse.com> wrote:
>>I've tried to add my own filter in the 
/etc/printcap file so it 
>>will add to correct printer commands but... and this is my question, 
for some very 
>>mysteriouse reasons the filter is totally ignored!

Yes, I've also experienced that filters are ignored. However, it seems 
they are ignored only for remote printers, not it you are printing to a 
file. So, one solution that works for me, is that I let the first 
printcap entry print to a local dummy file, using a script as a filter, 
and in that script, there is a lpr command to a secondary printcap entry 
that actually performs the remote printing. This method has the 
disadvantage of cluttering down the printcap with two entries, but it 
works...

Marek Pola
Hacker 
Tetra Pak Data Systems, Lund, Sweden.
marek.pola@tetrapak.400net.tip.net

"Fascinating" - Mr Spock




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-12-21  5:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-12-19  5:00 [Q] Printing to a network printer Shlomo Hakim
1995-12-20  5:00 ` Fred Tittaferrante
1995-12-21  5:00   ` Marek Pola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox