Maintain ~/WWW/home.txt for easy connection to dynamic IP through firewall
authorshort <>
Tue, 10 Jul 2001 18:42:55 +0000 (18:42 +0000)
committershort <>
Tue, 10 Jul 2001 18:42:55 +0000 (18:42 +0000)
bin/worldisup [new file with mode: 0755]

diff --git a/bin/worldisup b/bin/worldisup
new file mode 100755 (executable)
index 0000000..011f83c
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/sh
+t=/tmp/worldisup.$$
+
+(date
+  echo -e "\n$SSH_CLIENT\n"
+  h="`echo "$SSH_CLIENT"|awk '{print $1}'`"
+  host -a "$h"
+  ~/bin/ghortident $SSH_CLIENT
+  n="`host -a "$h" 2>&1|sed -n 's/^Name: \(.*\)/\1/p'`"
+  n="${n:-h}"
+  echo -e "\nssh -v $n -p 56122\ntelnet $n 56123"
+) 2>&1|todos >$t
+mv $t ~/WWW/home.txt