delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/30/10:35:56

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Michael Hoffman <b3i4old02 AT sneakemail DOT com>
Subject: Re: display ps command line parameters
Date: Mon, 30 Apr 2007 15:35:19 +0100
Lines: 23
Message-ID: <f14ura$tmm$1@sea.gmane.org>
References: <4edba06c76Andy AT jet-net DOT co DOT uk>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
In-Reply-To: <4edba06c76Andy@jet-net.co.uk>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Andy AT 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?

I use pstree -a.


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019