delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/30/12:04:33

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Tony Richardson <ar63 AT evansville DOT edu>
Subject: Re: display ps command line parameters
Date: Mon, 30 Apr 2007 16:03:50 +0000 (UTC)
Lines: 15
Message-ID: <loom.20070430T174617-803@post.gmane.org>
References: <4edba06c76Andy AT jet-net DOT co DOT uk>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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 <Andy <at> jet-net.co.uk> writes:
> In "ps -s" I get something like:
> 
>  PID  TTY    STIME COMMAND
> 1234  con 09:00:00 /path/program
> 
> Is there a way of doing this through ps (or an alternative) in Cygwin?

An alternative would be to parse /proc/PID/cmdline.  Arguments are
separated by null bytes.

Tony Richardson





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