From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4babe8922898e098 X-Google-Attributes: gidfee84,public From: Charles Richmond Subject: Re: ps bug on OSF1 4.0 Date: 2000/05/10 Message-ID: <3918EE60.29587A62@iisc.com>#1/1 X-Deja-AN: 621429535 Content-Transfer-Encoding: 7bit References: X-Accept-Language: Japanese, ja, en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@shore.net X-Trace: news.shore.net 957935295 198.5.5.16 (Wed, 10 May 2000 01:08:15 EDT) Organization: Integrated International Systems Corp. MIME-Version: 1.0 NNTP-Posting-Date: Wed, 10 May 2000 01:08:15 EDT Newsgroups: comp.unix.osf.osf1 >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 * ***********************************************************************