From owner-freebsd-questions@FreeBSD.ORG Mon Jun 16 23:55:22 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41F9A106566C for ; Mon, 16 Jun 2008 23:55:22 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from raq5.nitrex.net (raq5.nitrex.net [213.165.227.5]) by mx1.freebsd.org (Postfix) with ESMTP id 9581E8FC18 for ; Mon, 16 Jun 2008 23:55:21 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from [192.168.10.144] (gate.zenatode.org.uk [213.165.225.167]) by raq5.nitrex.net (8.13.1/8.13.1) with ESMTP id m5GNtHQt020346 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 17 Jun 2008 00:55:20 +0100 Message-ID: <4856FD65.5060908@onetel.com> Date: Tue, 17 Jun 2008 00:55:17 +0100 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.14 (X11/20080611) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.ORG, cwhiteh@onetel.com References: <200806161622.m5GGMEYY002616@lurza.secnetix.de> In-Reply-To: <200806161622.m5GGMEYY002616@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: how to view environment variables 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: Mon, 16 Jun 2008 23:55:22 -0000 Oliver Fromme wrote: > Chris Whitehouse wrote: > > sysutils/fusefs-ntfs/files/README.FreeBSD refers to various environment > > variables, eg UBLIO_BLOCKSIZE and others. How do I find out what they > > are set to? set and printenv don't find them. I'm using standard csh and > > FreeBSD 7.0-STABLE, fuse.ko is loaded and ntfs-3g works except it > > seems very slow. > > The "env" command prints the environment variables of your > current shell (should work with any shell). > > To view the environment variables of another process, use > something like "ps -ewwp 1234" (1234 being the PID number). > This requires PROCFS to be mounted on /proc. > > Best regards > Oliver > This is the last bit of the puzzle. It does indeed print environment variables set with 'env VAR=foo prog' but as I've now understood from previous replies the program doesn't set variables, it uses them if they are already set, otherwise uses defaults. Thanks Chris