r3641 add 30 seconds timeout to netcat call
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 21 May 2010 07:51:43 +0000 (07:51 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 21 May 2010 07:51:43 +0000 (07:51 +0000)
gateways/deviceconfig/fdry5.connector
gateways/deviceconfig/ios12.connector
gateways/deviceconfig/vrp53.connector

index 96c2d0e2d07d69b74b2158c9be7382553b4d76e4..aab9cfdce3349e296776f39fca9b83cac8502a7e 100755 (executable)
@@ -58,6 +58,6 @@ deploy)
        outfile=/dev/null
 esac
 printf 'exit\r\nexit\r\n' >> "$SESSION"
-nc -i 1 $ENDPOINT 23 < "$SESSION" > "$outfile"
+nc -w 30 -i 1 $ENDPOINT 23 < "$SESSION" > "$outfile"
 rm -f "$SESSION"
 exit 0
index 0aa7d634846a0b9693cecc4d55845be5bd203373..b01ceef7cde6b9f6d7ca6e6081a59f09b4af3ed2 100755 (executable)
@@ -64,6 +64,6 @@ deploy)
        ;;
 esac
 printf 'quit\n' >> "$SESSION"
-nc $ENDPOINT 23 < "$SESSION" > "$outfile"
+nc -w 30 $ENDPOINT 23 < "$SESSION" > "$outfile"
 rm -f "$SESSION"
 exit 0
index fd4e19d9da9d7e4fd3228fe716362b1f03e0e2f3..07ea6c931778c7a8cb2ed9d95aca74a1d576da81 100755 (executable)
@@ -59,6 +59,6 @@ deploy)
        outfile=/dev/null
 esac
 printf 'quit\n' >> "$SESSION"
-nc $ENDPOINT 23 < "$SESSION" > "$outfile"
+nc -w 30 $ENDPOINT 23 < "$SESSION" > "$outfile"
 rm -f "$SESSION"
 exit 0