From owner-freebsd-questions@FreeBSD.ORG Thu Jul 6 20:43:11 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5A1D16A4DA for ; Thu, 6 Jul 2006 20:43:11 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 570E443D46 for ; Thu, 6 Jul 2006 20:43:11 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 1980 invoked from network); 6 Jul 2006 20:43:10 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 6 Jul 2006 20:43:10 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id B9B3C28449; Thu, 6 Jul 2006 16:43:09 -0400 (EDT) To: Frank Jahnke References: <1152196718.880.44.camel@localhost> From: Lowell Gilbert Date: Thu, 06 Jul 2006 16:43:09 -0400 In-Reply-To: <1152196718.880.44.camel@localhost> (Frank Jahnke's message of "Thu, 06 Jul 2006 07:38:38 -0700") Message-ID: <44ejwy5usi.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: Passing Parameters from BSD to Linux and Back X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jul 2006 20:43:11 -0000 Frank Jahnke writes: > I use a few Linux programs on FreeBSD, and sometimes they invoke other > programs that use command line options. I have never been able to get > this parameter passing to work. > > For example, PDF files read by Acroread can contain links to a web > browser or an email program; these are often invoked as "program-name > %s" in the set-up file. VMware does the same with invoking a browser > from defaults set in a config file. > > I am able to get the appropriate program to open, but the parameters are > never passed. I have tried many, many schemes to quote or escape the > command and its options, but never have any of these worked. > > Any suggestions on how I might do this would be most appreciated! Hmm. Works for me. A web link in a PDF in Acroread (7) brings up the linked page in my (native) firefox. I had to configure the executable name (without path) into the "browser link" preference in acroread, and I think the .mailcap entry ("text/html; firefox %s") is needed as well.