Revised: how to filter the host which is being used by others
I would like to check whether others are log in the host or not. I have following tcsh script . **I would like to filter the host which is used by other users.** **I am using tcsh**.
Code:
host_list="/home/campus27/zwang10/bin/hostlist" The above script will write all available hostname into Code:
hostlist_available But some other people are log in the available hosts. I would like to delete those hosts (except me). My username is Code:
zwang10 |
If I am reading your post correctly, then try changing this:
Code:
HOSTS=`cat $host_list` Code:
HOSTS=`grep zwang10 $host_list` |
All times are GMT -5. The time now is 10:58 PM. |