August 2015
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

August 2015
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

shell script for ssh session

#!/bin/bash # max_number_of_ssh_client max_number_of_ssh_client=3 # lsof is essential if [[ ! -x `which lsof` ]]; then yum install lsof -y RETVAL=$? if [[ “$RETVAL” -ne “0” ]]; then echo “ERROR: can NOT use lsof command, please check your internet connection or install lsof by manual! ” exit $RETVAL fi else # TODO # for awk, […]