This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: display ps command line parameters
- From: Tony Richardson <ar63 at evansville dot edu>
- To: cygwin at cygwin dot com
- Date: Mon, 30 Apr 2007 16:03:50 +0000 (UTC)
- Subject: Re: display ps command line parameters
- References: <4edba06c76Andy@jet-net.co.uk>
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/