This is the mail archive of the
mailing list for the Cygwin project.
Re: extraneous 'I' in ps output
- From: Ronald Landheer-Cieslak <ronald at landheer dot com>
- To: "Andrew M. Inggs" <aminggs at yahoo dot co dot uk>
- Cc: cygwin at cygwin dot com
- Date: Tue, 4 Feb 2003 17:54:37 +0100 (CET)
- Subject: Re: extraneous 'I' in ps output
AFAICT, the I stands for "idle" and this is correct output. In any case,
it is the process status (have a look at the source - it is in the cygwin
package, under the winsup/utils directory (ps.cc) The ps is not entirely
OpenUnix or POSIX compliant (but I'm sure the maintainer (cgf?) will
gratefully accept patches) but AFAICT this is expected behaviour.
If this is posing a problem for one of your scripts, you might want to
consider making the script a bit sturdier :)
On Tue, 4 Feb 2003, Andrew M. Inggs wrote:
> "J.D. Laub" <firstname.lastname@example.org> wrote in message
> > Here's a simple test case that shows the behavior I'm seeing:
> > $ dummy=`ps > /tmp/foo`
> > $ cat /tmp/foo
> > PID PPID PGID WINPID TTY UID STIME COMMAND
> > I 1268 1 1268 1268 con 12917 07:42:04 /usr/bin/bash
> > 1388 1268 1268 1388 con 12917 07:42:19 /usr/bin/bash
> > 1408 1388 1408 1332 con 12917 07:42:20 /usr/bin/ps
> > Anytime ps is called from command substitution, an 'I' gets
> > prepended to the line for the top shell.
> I see this too (cygwin-1.3.19-1).
> > ps isn't in its own package, and I can't find docs on where to
> > look to find out in which package it was delivered.
> I can help you there, try <http://cygwin.com/packages/>. It
> helps to narrow things down if you give a bit more than just
> the filename, e.g., usr/bin/ps (note: no leading / though).
> >From here you'll see ps is in the cygwin package.
> -- Andrew
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html