![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| printing each users by processes | sam4now | Shell Programming and Scripting | 12 | 04-28-2008 07:11 PM |
| Processes and Users | barbus | Shell Programming and Scripting | 22 | 10-03-2007 08:09 PM |
| i need a scipt to email users with idle processes!? | sheppy28 | Shell Programming and Scripting | 0 | 02-02-2007 04:08 PM |
| Displaying the processes of users | olimiles | Shell Programming and Scripting | 2 | 08-18-2006 03:57 PM |
| Users and processes | Chiefos | UNIX for Dummies Questions & Answers | 17 | 06-17-2006 05:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
users and there processes
I am trying to write a script to list all users and their processes. I cant seem to find out how to link the PID to the user. For example if i run ps -a I get a nice list of all the processes running and their PID, but no information about which user is running them. I need the users real name not login in name so Joe Bloggs instead of joe.bloggs
The output should look similar to this. Joe Bloggs PID TTY TIME CMD 31799 pts/3 00:00:00 vim 31866 pts/3 00:00:00 vim 2495 pts/7 00:00:00 vim 8368 pts/0 00:00:00 vim 9544 pts/2 00:00:00 ps Henry Hill PID TTY TIME CMD 8368 pts/0 00:00:00 vim 9544 pts/2 00:00:00 ps anyone any ideas |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|