![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | 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 !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Detecting a key combination | mobile01 | High Level Programming | 11 | 12-22-2006 05:46 AM |
| shell help - file combination | ting123 | UNIX for Dummies Questions & Answers | 4 | 06-28-2006 09:50 PM |
| awk and file combination | sickboy | UNIX for Dummies Questions & Answers | 1 | 06-13-2005 06:02 PM |
| Combination Of commands | rahulrathod | UNIX for Dummies Questions & Answers | 2 | 12-14-2004 03:32 AM |
| Partition combination | gardarm | Filesystems, Disks and Memory | 3 | 03-14-2002 03:35 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
combination of two commands
I want to show a output like this
Lee Ballancore 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 Alistairr Rutherford PID TTY TIME CMD 8368 pts/0 00:00:00 vim 9544 pts/2 00:00:00 ps although i m getting the output with ps -a command but i m not able to show it separately along with the user name (not login name) on the top. I realise that it is the combination of finger and ps -a. but i dont know how to select only the name and display it separately for all the users logged on. is it possible for me to do this without the use od awk command. |
| Forum Sponsor | ||
|
|
|
|||
|
Thanks for the reply. but this command will only show one particular user. my sript has to find all the users looged on to the systems and show their current processes in the form as mentioned above. it should show the name of the user(not login name which comes in the finger command) on the top and below it should list the PID, TTY, TIME and CMD for each individual user.
|
| Tags |
| /etc/passwd, shell scripting |
| Thread Tools | |
| Display Modes | |
|
|