Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Check processes of all TTY's

Status
Not open for further replies.

vivek1712

Technical User
Dec 17, 2002
47
IN
finger | egrep -vi "l0|tty" | cut -c 33-34 |

while read a
do
ps -ft pts/$a | pg
echo "\n"
done
 
#!/bin/ksh

w -h | while read name tty rest
do
echo "[$tty]"
ps -ft $tty
done
vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top