Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Charles Richmond <cmr@iisc.com>
Subject: Re: ps bug on OSF1 4.0
Date: 2000/05/10	[thread overview]
Message-ID: <3918EE60.29587A62@iisc.com> (raw)
In-Reply-To: pbsnvrlqgy.fsf@srv-deu-cos11.baan.com

From the man page:

  -u ulist
      Displays only information about processes with the user ID numbers
or
      login names specified in ulist.  The ulist argument is either a
list of
      user IDs or a list of user IDs enclosed in " " (double quotes) and
      separated from one another by a comma or one or more spaces, or
both.
      Because of the way the shell treats spaces and tabs, you need to
quote
      space-separated lists.

      In the listing, ps displays the numerical user ID unless the -f
option
      is used; then it displays the login name.

Thus when the "-f" precedes the "-u" the id# must be changed to the
logname.

ps -f -u LOGNAME is the same as ps -u ID -f  The behavior is the same on
V4.0 564 alpha and on V5.0 910 alpha.

 > ps -f -u cmr
UID        PID  PPID    C STIME    TTY             TIME CMD
cmr       1294  1286  0.6   May 05 ttyp1        0:01.59 -sh (sh)
cmr       1300  1294  0.0   May 05 ttyp1       01:59:48 dxmail
cmr       1301  1294  0.0   May 05 ttyp1        0:24.57 xmille
....


 > ps -u 200 -f
UID        PID  PPID    C STIME    TTY             TIME CMD
cmr       1294  1286  0.0   May 05 ttyp1        0:01.56 -sh (sh)
cmr       1300  1294  0.0   May 05 ttyp1       01:59:48 dxmail
cmr       1301  1294  0.0   May 05 ttyp1        0:24.57 xmille




"Jens M. Felderhoff" wrote:
> 
> There is a strange behavior with the ps utility on OSF1 alpha V4.0.
> 
> Lets have a look:
> 
>         $ uname -a
>         OSF1 alpha V4.0 878 alpha alpha
>         $ ps -f -u 384
>         ps: cannot find user: "384"
>         $ ps -u 384 -f
>         UID         PID   PPID    C STIME    TTY             TIME CMD
>         jmfelder   7149  17954  0.0 16:56:38 ttyp0        0:00.42 -ksh (ksh)
> 
> Obviously there is a bug as the position of the options is relevant
> although it shouldn't.
> 
> Does anybody know about a patch for ps?
> 
> Cheers
> 
> Jens
> --
> Jens M. Felderhoff -- Baan Company, BaanWise Workflow
> 
> office: jmfelder@baan.com
> home  : j.m.f@netcologne.de

-- 
***********************************************************************
*  Charles Richmond    Integrated International Systems Corporation   *
*  cmr@iisc.com           cmr@acm.org        cmr@shore.net            *
*  UNIX Internals, I18N, L10N, X, Realtime Imaging, and  Custom S/W   *
*  One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431      *
*  (617) 723 7695   FAX (617) 723 6861   Cellular (617) 504 3379      *
***********************************************************************



  reply	other threads:[~2000-05-10  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-09  4:00 ps bug on OSF1 4.0 Jens M. Felderhoff
2000-05-10  4:00 ` Charles Richmond [this message]
2000-05-10  4:00   ` Jens M. Felderhoff
2000-05-10  4:00     ` Charles Richmond
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox