From owner-freebsd-questions@FreeBSD.ORG Tue Sep 14 11:00:19 2004 Return-Path: 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 0E13A16A4CE for ; Tue, 14 Sep 2004 11:00:19 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC4E243D41 for ; Tue, 14 Sep 2004 11:00:18 +0000 (GMT) (envelope-from jez.hancock@gmail.com) Received: by mproxy.gmail.com with SMTP id 77so732219rnl for ; Tue, 14 Sep 2004 04:00:18 -0700 (PDT) Received: by 10.38.3.70 with SMTP id 70mr2062122rnc; Tue, 14 Sep 2004 04:00:18 -0700 (PDT) Received: by 10.38.78.44 with HTTP; Tue, 14 Sep 2004 04:00:18 -0700 (PDT) Message-ID: <7b3c7f0b04091404007186efa2@mail.gmail.com> Date: Tue, 14 Sep 2004 12:00:18 +0100 From: Jez Hancock To: robg In-Reply-To: <5c389d3b04091319371aef7e73@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <5c389d3b04091319371aef7e73@mail.gmail.com> cc: freebsd-questions@freebsd.org Subject: Re: showing which path a user program runs from? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Jez Hancock List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Sep 2004 11:00:19 -0000 On Mon, 13 Sep 2004 22:37:33 -0400, robg wrote: > hi, say im the user 'rob' and i have the same program in two seperate > folders in my /home dir and run both.. if i run ps it shows me im > running both, but how can i find out which location folder is running > which program shown in ps Try using the -w option to the ps commandline more than once: ps auxww that should give you a complete listing that includes the full commandline. See the manpage for more info on ps: -w Use 132 columns to display information, instead of the default which is your window size. If the -w option is specified more than once, ps will use as many columns as necessary without regard for your window size. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/ - ipfw peruser traffic logging