delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/04/11:47:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: localhost.localdomain: ronald owned process doing -bs
Date: Tue, 4 Feb 2003 17:54:37 +0100 (CET)
From: Ronald Landheer-Cieslak <ronald AT landheer DOT com>
X-X-Sender: ronald AT localhost DOT localdomain
To: "Andrew M. Inggs" <aminggs AT yahoo DOT co DOT uk>
cc: cygwin AT cygwin DOT com
Subject: Re: extraneous 'I' in ps output
In-Reply-To: <b1onr0$jgb$1@main.gmane.org>
Message-ID: <Pine.LNX.4.44.0302041740200.19899-100000@localhost.localdomain>
MIME-Version: 1.0

Hello all,

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

rlc

On Tue, 4 Feb 2003, Andrew M. Inggs wrote:
> "J.D. Laub" <cygwin AT laubster DOT org> wrote in message
> news:<20030204154222 DOT GA3915 AT aberdeen DOT fpcc DOT net>...
> > 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
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