From owner-freebsd-questions Tue Jan 5 12:29:16 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02591 for freebsd-questions-outgoing; Tue, 5 Jan 1999 12:29:16 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from haleakala.aloha.net (haleakala.aloha.net [204.94.112.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA02580 for ; Tue, 5 Jan 1999 12:29:10 -0800 (PST) (envelope-from wai@aloha.net) Received: from localhost (wai@localhost) by haleakala.aloha.net (8.8.5/8.6.9) with SMTP id KAA05352 for ; Tue, 5 Jan 1999 10:28:41 -1000 (HST) Date: Tue, 5 Jan 1999 10:28:41 -1000 (HST) From: Wai Chan X-Sender: wai@haleakala To: freebsd-questions@FreeBSD.ORG Subject: Printing extra page number/info Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Since I didn't see any suggestion/solution, I probably didn't supply enough information for the problem that submitted couple days ago. I am using "Apple color LW 12/600 PS" printer driver on my Win98 box, and trying to print to Epson Stylus Color 600 of my FreeBSD 3.0 box (via SAMBA). The printing is fine, but at the end of each printing, it prints extra page number to a new page (without page feed), which is similar to this: %% [ Page: 1 ] %% %% [ LastPage ] %% Then I have to manually press page feed button to eject the paper. Otherwise, the next print job will be printed after the page number on the same paper. How can I get rid of this? I don't want to print the extra page number/info, it is wasting my paper. The following is my /etc/printcap: Epson600|Stylus600|lp|Epson Stylus COLOR 600:\ :sh:\ :mx#0:\ :sd=/var/spool/EpsonStylus600:\ :lp=/dev/lpt0:\ :if=/usr/local/libexec/Epson-if:\ :lf=/var/log/EpsonStylus600.log: The following is my /usr/local/libexec/Epson-if: #!/bin/sh read first_line first_two_chars=`expr "$first_line" : '\(..\)'` if [ "$first_two_chars" = "%!" ]; then /usr/local/bin/gs -dSAFER -dNOPAUSE -q -sDEVICE=stcolor -sOutputFile=- - && exit 0 else echo "$firstLine" && /bin/cat && printf "\f" && exit 0 fi exit 2 The following is printer setting in /usr/local/etc/smb.conf [printers] comment = All Printers path = /var/spool/samba browseable = no # Set public = yes to allow user 'guest account' to print public = yes # guest ok = no writable = no printable = yes Thank you very much for you attention. best wishes, Wai Chan wai@aloha.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message