X-Spam-Check-By: sourceware.org
Date: Mon, 30 Apr 2007 13:48:15 -0400 (EDT)
From: Igor Peshansky <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: "Andy@Jet-Net" <Andy@jet-net.co.uk>
cc: cygwin@cygwin.com
Subject: Re: display ps command line parameters
In-Reply-To: <4edba06c76Andy@jet-net.co.uk>
Message-ID: <Pine.GSO.4.63.0704301347480.4176@access1.cims.nyu.edu>
References: <4edba06c76Andy@jet-net.co.uk>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Mon, 30 Apr 2007, Andy@Jet-Net wrote:

> Hi all,
>
> I'm trying to get parameters entered at the Cygwin command line to
> appear on my ps command, and failing miserably!
>
> i.e. I'm running the following process at the command line:
>
>   program parameter1
>
> In "ps -s" I get something like:
>
>  PID  TTY    STIME COMMAND
> 1234  con 09:00:00 /path/program
>
> ... but I'd like to be able to pick up the "parameter1". So far as I can see
> it other ps commands on Unix have an "-o args" option. I've tried every
> option that seems to be available in Cygwin ps (v 1.11), but cannot get past
> this wall.
>
> Is there a way of doing this through ps (or an alternative) in Cygwin?

Try 'procps'.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

