Lun, 05/29/2017 - 16:52 — badorius
function check_net_port ()
{
local ip=$1
local port=$2
exec 3> /dev/tcp/"$ip"/"$port"
if [ $? -eq 0 ]; then return 0; else return 1; fi
}
Tags:
- Log in to post comments