chapter 10
authorLorin Hochstein <lorin.hochstein@sendgrid.com>
Sat, 7 Feb 2015 23:40:41 +0000 (18:40 -0500)
committerLorin Hochstein <lorin.hochstein@sendgrid.com>
Sat, 7 Feb 2015 23:40:41 +0000 (18:40 -0500)
ch10/playbooks/files/can_reach.sh [new file with mode: 0644]

diff --git a/ch10/playbooks/files/can_reach.sh b/ch10/playbooks/files/can_reach.sh
new file mode 100644 (file)
index 0000000..8608218
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/bash
+host=$1
+port=$2
+timeout=$3
+
+nc -z -w $timeout $host $port