Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Nov 1999 21:03:04 +0000
From:      Brian Somers <brian@Awfulhak.org>
To:        Dan Nelson <dnelson@emsphone.com>
Cc:        Forrest Aldrich <forrie@forrie.com>, freebsd-current@FreeBSD.ORG, brian@hak.lan.Awfulhak.org
Subject:   Re: ps on 4.0-current 
Message-ID:  <199911232103.VAA02408@hak.lan.Awfulhak.org>
In-Reply-To: Message from Dan Nelson <dnelson@emsphone.com>  of "Tue, 23 Nov 1999 12:32:12 CST." <19991123123212.B13601@dan.emsphone.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In the last episode (Nov 23), Forrest Aldrich said:
> > Why does ps not show the full path on 4.0 as in 3.3? (for non-root
> > users)
> > 
> > 4.0> ps -ax
> > 
> >    134  v2  Is+    0:00.00  (getty)
> >    135  v3  Is+    0:00.00  (getty)
> >    136  v4  Is+    0:00.00  (getty)
> >    137  v5  Is+    0:00.00  (getty)
> > 
> > 3.3> ps -ax
> > 
> >    312  v0  Is+    0:00.01 /usr/libexec/getty Pc ttyv0
> >    313  v1  Is+    0:00.01 /usr/libexec/getty Pc ttyv1
> >    314  v2  Is+    0:00.01 /usr/libexec/getty Pc ttyv2
> 
> That just means that on your 4.0 box, the gettys have been swapped out. 
> ps will not swap the process back in just to get the processname unless
> you give it the -f flag (and are root).

$ ps jtva
USER   PID  PPID  PGID   SESS JOBC STAT  TT       TIME COMMAND
root   222     1   222 9dac40    0 Is+   va    0:00.01  (getty)
$ ps fjtva
USER   PID  PPID  PGID   SESS JOBC STAT  TT       TIME COMMAND
root   222     1   222 9dac40    0 Is+   va    0:00.01  (getty)
$ sudo ps jtva
USER   PID  PPID  PGID   SESS JOBC STAT  TT       TIME COMMAND
root   222     1   222 9dac40    0 Is+   va    0:00.01 /usr/libexec/getty Pc tt
$ sudo ps fjtva
USER   PID  PPID  PGID   SESS JOBC STAT  TT       TIME COMMAND
root   222     1   222 9dac40    0 Is+   va    0:00.01 /usr/libexec/getty Pc tt
$ head -1 /etc/motd
FreeBSD 4.0-CURRENT (HAK) #9: Mon Nov 22 01:09:55 GMT 1999

This looks a bit wrong....

> -- 
> 	Dan Nelson
> 	dnelson@emsphone.com

-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>;                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911232103.VAA02408>