![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
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 |
| Detecting a key combination | mobile01 | High Level Programming | 11 | 12-22-2006 09:46 AM |
| shell help - file combination | ting123 | UNIX for Dummies Questions & Answers | 4 | 06-29-2006 12:50 AM |
| awk and file combination | sickboy | UNIX for Dummies Questions & Answers | 1 | 06-13-2005 09:02 PM |
| Combination Of commands | rahulrathod | UNIX for Dummies Questions & Answers | 2 | 12-14-2004 07:32 AM |
| Partition combination | gardarm | Filesystems, Disks and Memory | 3 | 03-14-2002 07:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | 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. |
|
||||
|
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.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| shell scripting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|