Check IP/Port
If you need to quickly check an external IP & port w/o sending anything..
/home/egatetst/scripts > ksh i-tcp-param.sh 170.999.0.67 3111
passed
/home/egatetst/scripts > ksh i-tcp-param.sh 170.999.0.67 3112
i-tcp-param.sh[3]: /dev/tcp/170.999.0.67/3112: cannot create
failed
>>>>START CODE<<<<<<<<<<<<<<<<<<<<
#!/usr/bin/ksh
# example : ksh i-tcp-param.sh 170.999.0.67 8888
if [ exec 3<> /dev/tcp/$1/$2 ]
then
echo “passed”
else
echo “failed”
fi
>>>>>>>>>END CODE<<<<<<<<<<<<
*NOTE: if this hangs it means that theres ‘no response’ from IP