si458

Untitled

May 20th, 2014
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.09 KB | None | 0 0
  1. if [ $? -eq 0 ] && [ `$nc -zv $hostname $port 2>&1 | awk '{print $7}'` = "succeeded!" ]
Advertisement
Add Comment
Please, Sign In to add comment