The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Identifying and grouping OS processes and APP processes wilsonee SUN Solaris 2 1 Week Ago 06:26 AM
What is meant by the words under usernames? joeyg Post Here to Contact Site Administrators and Moderators 2 06-06-2008 08:55 AM
Monitoring Processes - Killing hung processes ukndoit UNIX for Advanced & Expert Users 4 01-17-2008 12:30 AM
extracting usernames with at least 4 characters c19h28O2 Shell Programming and Scripting 4 05-24-2006 01:02 AM
max charachters for usernames m.szylkarski UNIX for Dummies Questions & Answers 1 02-01-2002 07:50 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-13-2006
Registered User
 

Join Date: Mar 2006
Posts: 3
Stumble this Post!
Usernames and processes most used

I need a command that returns the usernames that have ran the 10 processes that have taken the most time to execute on a machine.

I also need a command that returns only those directories that have read/execute permissions for all the users.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 03-13-2006
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,002
Stumble this Post!
Quote:
Originally Posted by anw68ster
I need a command that returns the usernames that have ran the 10 processes that have taken the most time to execute on a machine.

I also need a command that returns only those directories that have read/execute permissions for all the users.
now that we all know what your needs are.... what have you tried to accomplish yourself so far?
Reply With Quote
  #3 (permalink)  
Old 03-13-2006
Registered User
 

Join Date: Mar 2006
Posts: 3
Stumble this Post!
Not much as I´m fairly new to this:


ps -ef

find . -type d -perm u=rx, o=rx
Reply With Quote
  #4 (permalink)  
Old 03-13-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,325
Stumble this Post!
You pretty much got it.
Code:
ps -ef
. Now that will output a column named STIME or something to that effect. This is the time that the process started running. If you are using BSD or any of its flavours, use
Code:
ps aux
to get the 'STARTED' column.

And in the find command, use the below syntax to provide the perm value. The octal representation is much easier to use. Also check the man page to understand the usage of the '-' sign in front of the 0005.
Code:
find . -type d -perm -0005 -exec ls -ld {} \;
Reply With Quote
  #5 (permalink)  
Old 03-13-2006
Registered User
 

Join Date: Mar 2006
Posts: 3
Stumble this Post!
Many thanks for the quick response Blowtorch.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:54 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0