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**.
cp /dev/null hostlist_available
for line in $HOSTS
ssh -o ConnectTimeout=1s $line true &>/dev/null
if [ $RESULT -eq 0 ]
echo $line >> hostlist_available
The above script will write all available hostname into
But some other people are log in the available hosts. I would like to delete those hosts (except me). My username is