Unix Technical Forum

How to implement OutputFilter when printing to a network printer, SCO 5.0.6?

This is a discussion on How to implement OutputFilter when printing to a network printer, SCO 5.0.6? within the Sco Unix forums, part of the Unix Operating Systems category; --> I want to send a FormFeed after every output to a printer connected to a Netgear PS110 printserver. I ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 11:24 AM
=?ISO-8859-1?Q?Ulf_H=E4ggkvist?=
 
Posts: n/a
Default How to implement OutputFilter when printing to a network printer, SCO 5.0.6?

I want to send a FormFeed after every output to a printer connected to
a Netgear PS110 printserver. I have implemented the filter mentioned
in TA 112842 found in SCO Knowledge database. I have tried it exactly
as in the TA and also a variant where the exec starts the filter with
$1 appended and the script read $1 instead of standard input. If I use
the filter manually like in 'addcrff file1 | lp -d printer1' a
FormFeed is appended to the output and it looks nice but if I then put
of=/usr/bin/sh_addcrff in the /etc/printcap for printer1 and use the
command 'lp -d printer1 file1' no FormFeed is appended and the printer
halts in the middle of the page.
Have I missed something?
Have I misunderstood the whole thing?
I haven't restarted the lpd deamon, can that be a problem?
Any other suggestions?
Kind regards,
Ulf Häggkvist
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 11:24 AM
Stuart J. Browne
 
Posts: n/a
Default Re: How to implement OutputFilter when printing to a network printer, SCO 5.0.6?

"Ulf Häggkvist" <ulf.haggkvist@datavis.se> wrote in message
news:a1955423.0308242219.2e2d8628@posting.google.c om...
> I want to send a FormFeed after every output to a printer connected to
> a Netgear PS110 printserver. I have implemented the filter mentioned
> in TA 112842 found in SCO Knowledge database. I have tried it exactly
> as in the TA and also a variant where the exec starts the filter with
> $1 appended and the script read $1 instead of standard input. If I use
> the filter manually like in 'addcrff file1 | lp -d printer1' a
> FormFeed is appended to the output and it looks nice but if I then put
> of=/usr/bin/sh_addcrff in the /etc/printcap for printer1 and use the
> command 'lp -d printer1 file1' no FormFeed is appended and the printer
> halts in the middle of the page.
> Have I missed something?
> Have I misunderstood the whole thing?
> I haven't restarted the lpd deamon, can that be a problem?
> Any other suggestions?


Look at Tony Lawrence's page for 'virtual printer'
(http://aplawrence.com/SCOFAQ/scotec7.html#virtualprint).

bkx


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com