#!/usr/local/bin/expect spawn /usr/local/bin/zh-telnet $argv while 1 { interact timeout 300 { send '\0' } }