*BSD News Article 33211


Return to BSD News archive

Xref: sserve comp.os.386bsd.misc:2798 comp.os.linux.misc:20191
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!swrinde!news.uh.edu!uuneo.neosoft.com!Starbase.NeoSoft.COM!nobody
From: peter@Starbase.NeoSoft.COM (Peter da Silva)
Newsgroups: comp.os.386bsd.misc,comp.os.linux.misc
Subject: Re: I hope this won't ignite a major flame war, but I've got to know!
Date: 25 Jul 1994 21:59:01 -0500
Organization: NeoSoft Internet Services   +1 713 684 5969
Lines: 30
Message-ID: <311u5l$hq6@Starbase.NeoSoft.COM>
References: <30drlt$7tc@news.u.washington.edu> <30ntmh$642@apollo.west.oic.com> <30pafh$hv4@Starbase.NeoSoft.COM> <DHOLLAND.94Jul25170707@scws33.harvard.edu>
NNTP-Posting-Host: starbase.neosoft.com

In article <DHOLLAND.94Jul25170707@scws33.harvard.edu>,
David Holland <dholland@scws33.harvard.edu> wrote:
>There's -t, to select a terminal; ps -tp6 lists only what's on ttyp6.

OK, how about -u.

>Does AT&T ps have an equivalent of -x?

Either the manual is wrong, or FreeBSD PS is broken:

     -x      Display information about processes without controlling termi-
             nals.

% ps -x
  PID TT  STAT      TIME COMMAND
  951 ??  I      0:00.23 /bin/sh .xinitrc
  960 ??  I      0:00.02 /bin/sh .xinitrc
  961 ??  S      1:18.13 /usr/local/bin/wish -f /usr/local/bin/tkpostage -geome
  962 ??  S      0:03.70 olvwm
  964 ??  I      0:00.38 olwmslave
 1100 ??  I      0:00.03 /bin/sh -c /usr/X386/bin/xterm -sb
 2936 ??  I      0:00.03 /bin/sh -c /usr/X386/bin/xterm -sb
 1102 p1  Ss     0:00.93 -sh (csh)
 3228 p1  RU+    0:00.06 ps -x
 2938 p2  Is+    0:00.59 -sh (csh)
 3017 p3  SUs+   0:01.00 rlogin -l peter starbase
 3018 p3  S+     0:00.75 rlogin -l peter starbase

Why do you suppose it's showing 1102, 3228, etc? I really want to know, 'cos
it looks like 'ps -x' is more like 'ps -a' in System V.