command "ps -ef" need procfs - how can i install this?

Status
Not open for further replies.

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
[Solved] command "ps -ef" need procfs - how can i install this?

Hi, i'm new to FreeNAS and FreeBSD.

I would like to see the process like with ps -ef from Linux.

The command on FreeNAS 8 need procfs.

How can i install procfs, or is there any other command that can do the same than ps -ef?

Thanks
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
What column(s) of information from -ef are you interested in? PPID? or something else?

I'm trying to compare the output and PPID is the only thing I can notice that's missing.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Trying to compare the output with what?
Do you have a similar command than ps?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Trying to compare the output with what?

With my Linux (Ubuntu) system.

The only difference I could notice was the column PPID. What info is missing on FreeNAS?


If you need to mount procfs you can add the following to /etc/fstab (which will be non-persistent):

proc /proc procfs rw,noauto 0 0
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Here is my output :
Code:
[root@nas] ~# ps -ef
ps: Process environment requires procfs(5)
  PID  TT  STAT      TIME COMMAND
 2010  v0- S      0:21.36  /usr/local/bin/python /mnt/zepool/apps/SickBeard/SickBeard.py .-quiet
 2361  v0  Is+    0:00.18  python /etc/netcli
 2362  v1  Is+    0:00.00  /usr/libexec/getty Pc ttyv1
 2363  v2  Is+    0:00.00  /usr/libexec/getty Pc ttyv2
 2364  v3  Is+    0:00.00  /usr/libexec/getty Pc ttyv3
 2365  v4  Is+    0:00.00  /usr/libexec/getty Pc ttyv4
 2366  v5  Is+    0:00.00  /usr/libexec/getty Pc ttyv5
 2367  v6  Is+    0:00.00  /usr/libexec/getty Pc ttyv6
 2368  v7  Is+    0:00.00  /usr/libexec/getty Pc ttyv7
10781   0  Ss     0:00.01  -csh (csh)
10785   0  R+     0:00.00  ps -ef


The problem is not about missing columns (although PPID is interesting), it's the fact that it doesn't display all the processes
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
If you need to mount procfs you can add the following to /etc/fstab (which will be non-persistent):
proc /proc procfs rw,noauto 0 0
What do i have to do after adding this to fstab?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Sorry about that, any time you update /etc/fstab (add a mountpoint), do 'mount -a'.

The problem is not about missing columns (although PPID is interesting), it's the fact that it doesn't display all the processes

You probably want to add -ax if you want to see more processes.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
ps -ax it is :)

Thanks a lot, i never had the idea of looking at the options. Always used -ef so far :)
 
Status
Not open for further replies.
Top