Re: Adding a FormFeed to an LPR printcap file?

2005-05-29 Thread modelt20
Hello: I think I found the answer. The problem is you don't want to use the printf command with a hex value, like I was trying; you want to use the printf "\f" syntax instead. See man 1 printf. The last line then becomes: echo "$first_line" && cat && printf "\f" && exit 0 and now it works just fi

Re: Adding a FormFeed to an LPR printcap file?

2005-05-29 Thread modelt20
Hello: Thank you for your reply. My if filter follows: #!/bin/sh # # kx-p1124 - Print Ghostscript-simulated Postscript on a Panasonic KX-P1124 # installed in /usr/local/bin/kx-p1124 # # Read first two characters of the file # IFS="" read -r first_line first_two_chars=`expr "$first_line" : '\(..\

Re: Adding a FormFeed to an LPR printcap file?

2005-05-28 Thread Warren Block
On Fri, 27 May 2005 [EMAIL PROTECTED] wrote: Could someone suggest a way to add a form feed to the end of a print document in LPR? I have a printer that doesn't eject the last page when the print job is finished; and I can't seem to find this in the manual. My guess is I need to add it to my pr

Re: Adding a FormFeed to an LPR printcap file?

2005-05-28 Thread Rick Preston
Hi, I believe that :sh is called suppress header and that it suppresses the banner page. Form feed is a control character. hex 0c. In the past I have added it to the bottom of my text or PCL documents or added it in the printer interface script on UNIX systems that use the lpsystem print subsys

Re: Adding a FormFeed to an LPR printcap file?

2005-05-28 Thread Mike Jeays
On Fri, 2005-05-27 at 23:10, [EMAIL PROTECTED] wrote: > Hello: > > Could someone suggest a way to add a form feed to the > end of a print document in LPR? I have a printer that > doesn't eject the last page when the print job is > finished; and I can't seem to find this in the manual. > > My gues

Adding a FormFeed to an LPR printcap file?

2005-05-28 Thread modelt20
Hello: Could someone suggest a way to add a form feed to the end of a print document in LPR? I have a printer that doesn't eject the last page when the print job is finished; and I can't seem to find this in the manual. My guess is I need to add it to my printer filter, but its not clear to me wh