![]() |
|
|
|||||||
| Home | Forums | Register | Rules & FAQ | Members List | Arcade | 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 !! |
Other UNIX.COM Threads You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Processes by User's names | kartikkumar84@g | UNIX for Dummies Questions & Answers | 2 | 05-22-2008 09:59 AM |
| Processes by User's actual names | kartikkumar84@g | Shell Programming and Scripting | 1 | 05-22-2008 08:52 AM |
| Monitoring Processes - Killing hung processes | ukndoit | UNIX for Advanced & Expert Users | 4 | 01-17-2008 12:30 AM |
| How can I match . (actual dot) using sed? | jingi1234 | UNIX for Dummies Questions & Answers | 9 | 09-19-2005 09:44 AM |
| Need actual bootpd for solaris | johnnypark | SUN Solaris | 0 | 04-28-2005 07:51 AM |
![]() |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
hi all.
Is there any way to get the original names (not the login names) of users currently logged on to the machine and the processes they are logged on to...names as in abc xyz and not abc.xyz I dont want to first use w -s and then loops to arrange the information, and i cant figure out how to use grep and then display the users. $ w -s, $ users, $ ps commands can not be used in the best of knowledge. Is there any other way.. |
| Forum Sponsor | ||
|
|
|
|||
|
Thank You jim, but the output is still exactly the same as w -s on my system. I cant figure out why...
Basically what I'm trying to do is first read the logged on users using the 'users' command, save it in a varible and then running a while loop to get the processes according to the logged on users. i.e. #!bin/bash Code:
var=$(users); Code:
while read $(users) do w $user done should i be using 'case' for this. Last edited by kartikkumar84@g : 05-13-2008 at 03:40 PM. Reason: solution found partly |
|||
| Google UNIX.COM |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|