From owner-freebsd-questions Mon May 14 16:50:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 916D737B42C for ; Mon, 14 May 2001 16:50:22 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 31817 invoked by uid 100); 14 May 2001 23:50:12 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15104.28468.60861.806874@guru.mired.org> Date: Mon, 14 May 2001 18:50:12 -0500 To: "Hartmann, O." Cc: questions@freebsd.org Subject: Re: How to obtain a path-variable to an subsystem? (fwd) In-Reply-To: <77731252@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hartmann, O. types: > Dear Sirs. > > Well, this question is maybe not of concern of this group. > > I use magicfilter for driving our printer servers and before changing > the installation (changed hardware and set up a new FBSD) all things worked > fine to us. Weird. My magicfilter installation doesn't have *any* occurences of a2ps in it. Then again - I prefer enscript, so enscript is installed and a2ps isn't installed, and the magicfilter install used enscript for those printers that can't handle flat ascii. > I can not print any job because magicfilter uses a2ps and a2ps uses > as many other tools for themselfes other tools which they call. > Now I get a lot of error messages in the log for each printer that fixps > and related could not be loaded, but fixps is available! > > It seems to me to be a problem how to pass the environment variables to > the subsystem of printers and force them to search at special locations > like //usr/local/bin. First, check to see if a2ps has the path to fixps wired into it in the wrong place. If so, that needs to fix. If a2ps is just looking for "fixps", then you need to set the PATH variable to include /usr/local/bin, assuming that's where fixps is set. You can probabl fix this in /etc/rc.conf, by setting: lpd_program="PATH=$PATH:/usr/local/bin /usr/sbin/lpd" but if something along the way loses the PATH information, you'll have to propagate it downward. Setting it in the magicfilter filter files before a2ps is invoked, for instance. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message