From owner-freebsd-stable@FreeBSD.ORG Tue Dec 30 17:32:35 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC5F216A4CE for ; Tue, 30 Dec 2003 17:32:35 -0800 (PST) Received: from albatross.mail.pas.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07F0C43D53 for ; Tue, 30 Dec 2003 17:32:35 -0800 (PST) (envelope-from pixfbsd@earthlink.net) Received: from user153.net413.tx.sprint-hsd.net ([65.40.98.153] helo=[192.168.10.15]) by albatross.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1AbVDt-0006yx-00 for stable@freebsd.org; Tue, 30 Dec 2003 17:32:33 -0800 From: pixfbsd To: stable@freebsd.org Content-Type: text/plain Message-Id: <1072838049.5571.8.camel@viper.dlqj.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 30 Dec 2003 20:34:09 -0600 Content-Transfer-Encoding: 7bit Subject: printer job date change X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 01:32:35 -0000 I have FreeBSD 5.2-CURRENT. /etc/printcap hp2200:\ :sh:\ :rm=hp2200:\ :sd=/var/spool/output/lpd/hp2200:\ :mx#0:\ :if=/usr/local/libexec/hpif2:\ :lf=/var/log/lpd-errs: /usr/local/libexec/hpif #!/bin/sh # # hpif - Simple text input filter for lpd for HP-PCL based printers # Installed in /usr/local/libexec/hpif # # Simply copies stdin to stdout. Ignores all filter arguments. # Tells printer to treat LF as CR+LF. Ejects the page when done. printf "\033&k2G" && cat && printf "\033&l0H" && exit 0 exit 2 In the dfA009exampleFile in /var/spool/output/lpd/hp2200 there is the value @PJL SET DATE=31-12-2003. I want to create a filter that will change that value to the year 2000. Why? If you recall HP has date information in their printer cartridges, that after a certain date the cartridge becomes "expired". Although you have plenty of ink or a cartridge that has been on the shelf for along time. If I manually vi the file I can print, therefore I was trying to find a filter that would send the PJL command to set the date to a default 01-12-2000 all the time. Has someone already completed such a thing?