#! /bin/bash while read -r var do echo $var timeout 1 curl -s telnet://localhost:22