From owner-freebsd-questions Wed Jan 9 5:51:39 2002 Delivered-To: freebsd-questions@freebsd.org Received: from relay.ioffe.rssi.ru (relay.ioffe.rssi.ru [194.85.224.33]) by hub.freebsd.org (Postfix) with ESMTP id B25B837B47E for ; Wed, 9 Jan 2002 05:51:10 -0800 (PST) Received: from astro.ioffe.rssi.ru (astro.ioffe.rssi.ru [194.85.229.130]) by relay.ioffe.rssi.ru (8.9.1/8.9.1) with ESMTP id QAA26536 for ; Wed, 9 Jan 2002 16:51:09 +0300 (MSK) Received: by astro.ioffe.rssi.ru (8.9.3/Clnt-2.14-AS-eef) id QAA18545; Wed, 9 Jan 2002 16:50:03 +0300 (MSK) Date: Wed, 9 Jan 2002 16:50:03 +0300 (MSK) From: Alexey Koptsevich To: questions@freebsd.org Subject: duplex networked printer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I have a trouble setting duplex printing on HP 4050 with JetDirect installed. It prints duplex if connected via lpt0 and the filter below is used. But it does not do duplex if connected via ethernet, only simplex. I tried some filters, options in apsfilter -- no changes. Your help is greatly appreciated! Thanks, Alex > > > #!/usr/bin/perl -s > > > > > > # psduplex - insert PostScript code to set and unset duplexmode for this job > > > # > > > # usage: psduplex [-tumble], default "edge" > > > # > > > # Steve Kinzler, kinzler@cs.indiana.edu, October 1991 > > > > > > $_ = <>; > > > unless (/^%!/) { # not PostScript, pass through as is > > > print; > > > while (<>) { > > > print; > > > } > > > exit; > > > } > > > > > > print; > > > while (<>) { > > > last unless /^\s*%/; > > > print; > > > } > > > > > > print "statusdict begin\n\ttrue setduplexmode\n"; > > > print "\ttrue settumble\n" if $tumble; > > > print "end\n"; > > > > > > print; > > > while (<>) { > > > print; > > > } > > > > > > print "statusdict begin\n\tfalse setduplexmode\n"; > > > print "\tfalse settumble\n" if $tumble; > > > print "end\n"; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message