21 Feb
2006
21 Feb
'06
8:21 p.m.
Stuart Bailey <stuart@linusoft.co.uk> [...]
while read -t 2 -u 4 RESULT [...] I thought the read -t 2 ... should timeout after 2 seconds if no data is received. Any idea why this hangs?
Does that work other than when reading from a pipe or live terminal? The -u is pointing it at a file descriptor, so that might hang it.
Also, is there a better way to test these ports? The system I am trying to test is limited - perl and awk are not installed.
I can't think of one on that limited a system. Hope that helps, -- MJ Ray - personal email, see http://mjr.towers.org.uk/email.html Work: http://www.ttllp.co.uk/ irc.oftc.net/slef Jabber/SIP ask