Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remote line printer filter

Status
Not open for further replies.

munis

IS-IT--Management
Nov 2, 2001
1
US
I need instructions for the simplest method to pipe a local filtered printer to a remote printer. This would
be greatly appreciated. This printer uses a standard printer driver and will be printing to an ip printserver.

I can get the printer to print to the ip printserver but I have no control over it. I need to be able to change the character and line spacing. I'm running SCO Openserver 5.05

Thanks
 
Assuming you're not talking about sending the report to a windows *only* printer attached to a windoze box -

in a script just prepend the escape sequence for the font/size/spacing etc. and append the 'set to normal' sequence after the data has been passed on to the printer.

Something like:

compress=xxxxx (specific to your printer)
regular=yyyyy

echo $compress > /tmp/filter.$$

>> /tmp/filter.$$

echo $regular >> /tmp/filter.$$

/bin/lp -d<spooled printer id> /tmp/filter.$$

rm /tmp/filter.$$

BTW Unixware allows the use of filters (models) directly, as if they were local.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top