12-09-2007
3,
0
Join Date: Nov 2007
Last Activity: 9 December 2007, 4:29 PM EST
Posts: 3
Thanks Given: 0
Thanked 0 Times in 0 Posts
need help with a script!
i need to write a script which shows all the users and there processes they are running. i have tried using the ls and ps commands together but cannot get any sort of results. the output should look 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