From owner-freebsd-net Tue Dec 15 05:29:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA27466 for freebsd-net-outgoing; Tue, 15 Dec 1998 05:29:20 -0800 (PST) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from msf1.swe.ids.dps.casa.es (h029206.nexo.es [195.235.29.206]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA27458 for ; Tue, 15 Dec 1998 05:29:07 -0800 (PST) (envelope-from jlfreniche@acm.org) Received: from is1.casa.es (is1.casa.es [192.168.254.2]) by msf1.swe.ids.dps.casa.es (8.8.8/8.8.8) with ESMTP id OAA02104 for ; Tue, 15 Dec 1998 14:28:07 +0100 (CET) (envelope-from jlfreniche@acm.org) Received: from acm.org (localhost [127.0.0.1]) by is1.casa.es (8.8.8/8.8.8) with ESMTP id OAA20289 for ; Tue, 15 Dec 1998 14:27:18 +0100 (CET) (envelope-from jlfreniche@acm.org) Message-ID: <367663B6.518CE524@acm.org> Date: Tue, 15 Dec 1998 14:27:18 +0100 From: "Juan L. Freniche" X-Mailer: Mozilla 4.05 [en] (X11; I; FreeBSD 2.2.7-RELEASE i386) MIME-Version: 1.0 To: net@FreeBSD.ORG Subject: Passing Parameters to Remote Printers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I have several FreeBSD (2.2.7) boxes in the same LAN shared with the print server (which is HP-UX). I have defined all necessary printers in FreeBSD as remote, being the remote host the HP-UX one. However, the HP-UX supports controlling the local printer by setting some options in the lp command (yes, lpr in HP-UX is "lp"). Examples: lp -d hp5p -oeconoon -oduplex -odpi300 -oyb some_file lp -d hp5p -oeconooff -osimplex -odpi600 -onb some_file lp -d hp5p -oeconooff -oduplex -odpi300 -onb some_file lp -d hp5p -oeconooff -oduplex -odpi300 -oyb some_file lp -d hp5p -oeconooff -osimplex -odpi600 -oyb some_file where hp5p is the printer (attached to HP-UX). The FreeBSD printcap relevant part is: hp5p|ps|remote postscript printer:\ :lf=/var/log/lpd-errs:sh:sc:rs:lp=:\ :sd=/var/spool/output/lpd/hp5p:\ :rm=hp-ux:\ :rp=hp5p: And this is working if the lpr command (in FreeBSD) has FreeBSD-lpr-options: lpr -h -P hp5p some_file However lpr displays error messages with lpr -P hp5p -oeconoon -oduplex -odpi300 -oyb some_file which is obvious as it does not support -o The question is that I need to pass -o parameters to the remote printer. How can this be done? -- Juan L. Freniche To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message