У меня есть оболочка unix script, которая проверяет ftp-порты нескольких хостов, перечисленных в файле.
for i in `cat ftp-hosts.txt`
do
echo "QUIT" | telnet $i 21
done
В общем, эти скрипты работают, однако, если я сталкиваюсь с хостом, который не подключается, т.е. telnet "Trying...", как я могу уменьшить это время ожидания, чтобы он мог протестировать следующий узел?