Visit Our UNIX and Linux User Community


Usernames and processes most used


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Usernames and processes most used
# 1  
Old 03-13-2006
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.
# 2  
Old 03-13-2006
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?
# 3  
Old 03-13-2006
Not much as Im fairly new to this:


ps -ef

find . -type d -perm u=rx, o=rx
# 4  
Old 03-13-2006
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 {} \;

# 5  
Old 03-13-2006
Many thanks for the quick response Blowtorch.

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Homework & Coursework Questions

Display usernames and their UIDs

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write a script that displays all usernames and their UIDs in the following fashion: name1 uid=999 name2... (2 Replies)
Discussion started by: baniel
2 Replies

2. Solaris

Individual usernames for the same login account

Hi There is an application installed on a server, that has a unique login account, but many users are using it with the same login name! How can we overcame this by creating individual accounts for the same application login account? (11 Replies)
Discussion started by: fretagi
11 Replies

3. Shell Programming and Scripting

Loop through usernames 1 by 1 and select

Hello All, A quick description of what I would like to do; 1) Find all the current registered usernames and loop through them. 2) Display each username 1 by 1 and Ask the user if they would like to store the username in another array (y or n) 3) Display the list of chosen usernames... (4 Replies)
Discussion started by: mmab
4 Replies

4. Shell Programming and Scripting

Creating usernames from a list of names

Hello everyone, I am trying to create a script that will make usernames (last name and first letter of name - for example, James Bond = bondj). At this point, I figured out how to make a script that can read the list of names from a text file. Here is what I have: #!/bin/bash ... (5 Replies)
Discussion started by: RSpades
5 Replies

5. UNIX for Advanced & Expert Users

Usernames in Sudoers have #

We have users that have a # in their username. Sudo is working on some servers and not others. I have narrowed it down to the # in their username. Any suggestions or ideas why it is working on 1 server but not another. Server not working is - Solaris 10 patch level 138888-01 Server working is ... (1 Reply)
Discussion started by: Gibby13
1 Replies

6. UNIX for Advanced & Expert Users

Usernames across Applications

Hello everyone, I was just wondering if there was a way to make it so that usernames could be used across applications. For instance, I have a server that has a bunch of users. I want these users to have ways of accessing my database as well as a variety of other programs, but I don't want them... (2 Replies)
Discussion started by: gonzofish
2 Replies

7. Post Here to Contact Site Administrators and Moderators

What is meant by the words under usernames?

Under all users, there are some keynames. Some are obvious, like Moderator and Registered User. I have seen others too. What do they mean or signify?;) (2 Replies)
Discussion started by: joeyg
2 Replies

8. Shell Programming and Scripting

extracting usernames with at least 4 characters

Hi, i want to use grep to extract users with at least 4 characters in their username, i've tried who | grep \{4,\} but thats not working!!!!!! Thanks (4 Replies)
Discussion started by: c19h28O2
4 Replies

9. UNIX for Dummies Questions & Answers

max charachters for usernames

Can anyone tell me what the charachter maximum on a username is in SunOs 5.6. Thanks Mark (1 Reply)
Discussion started by: m.szylkarski
1 Replies

Featured Tech Videos