From 74406e6eee2f69e8861315071b5be38571747c11 Mon Sep 17 00:00:00 2001 From: epochqwert Date: Tue, 13 Jan 2015 02:09:00 -0600 Subject: updated a lot of cuturl. added a timeout to telnet-gateway.sh --- nocompile/libexec/telnet-gateway.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'nocompile/libexec/telnet-gateway.sh') diff --git a/nocompile/libexec/telnet-gateway.sh b/nocompile/libexec/telnet-gateway.sh index ca2b90d..aac9dd6 100755 --- a/nocompile/libexec/telnet-gateway.sh +++ b/nocompile/libexec/telnet-gateway.sh @@ -14,4 +14,8 @@ for i in `seq 5 1`;do printf "\r%d..." $i sleep 1 done -nc $(printf "%s" "$serverURL" | cuturl | grep ^domain | cut '-d ' -f2) 23 +port=$(printf "%s" "$serverURL" | cuturl | grep ^port | cut '-d ' -f2) +exec ncat -i 600 $(printf "%s" "$serverURL" \ + | cuturl \ + | grep ^domain \ + | cut '-d ' -f2 ) $port -- cgit v1.2.3