Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2004 12:00:18 +0100
From:      Jez Hancock <jez.hancock@gmail.com>
To:        robg <robg.list@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: showing which path a user program runs from?
Message-ID:  <7b3c7f0b04091404007186efa2@mail.gmail.com>
In-Reply-To: <5c389d3b04091319371aef7e73@mail.gmail.com>
References:  <5c389d3b04091319371aef7e73@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 13 Sep 2004 22:37:33 -0400, robg <robg.list@gmail.com> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7b3c7f0b04091404007186efa2>