Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ps -ef

Status
Not open for further replies.

jaytco

Vendor
Dec 13, 2001
88
US
I have a solaris 8 Sparc box, and for some reason when I do a /usr/bin/ps -ef is only shows most, but not all of my processes. But when I do a /usr/ucb/ps aux I get all the processes (mine and system as I would expect). The binary size is correct and the sum value is the same os other boxes that work correctly.

Thanks
 
Can you identify which processes aren't being listed by /usr/bin/ps? Annihilannic.
 
It look like the only processes that are showing are my own process. root or other user processes are not showing up.

[stargate]> ps -ef | grep -v grep | wc -l
26
[stargate]> /usr/ucb/ps aux | grep -v grep | wc -l
74
[stargate]> /usr/ucb/ps aux | grep jtombre | grep -v grep | wc -l
27
 
So the output of ps -f and ps -ef as 'jtombre' are almost identical? What happens if you type ps -fu root?

What are the permissions on your /proc directory? They should be dr-xr-xr-x, and it should be owned by root:root. Annihilannic.
 
ps -f shown the current login processes and ps -ef show all login processes.

[stargate]/proc> ls -la / | grep proc
dr-xr-xr-x 75 root root 30400 Jan 22 11:35 proc

So that looks good
 
Does ps -fu root list all root's processes?

Does ps -ef work normally when you are logged in as root? If so, you could try comparing the output of truss ps -ef when logged in as root and when logged in as yourself to find out which system calls are failing, or not being made. Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top