git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0880a21
)
Maintain ~/WWW/home.txt for easy connection to dynamic IP through firewall
author
short
<>
Tue, 10 Jul 2001 18:42:55 +0000
(18:42 +0000)
committer
short
<>
Tue, 10 Jul 2001 18:42:55 +0000
(18:42 +0000)
bin/worldisup
[new file with mode: 0755]
patch
|
blob
diff --git a/bin/worldisup
b/bin/worldisup
new file mode 100755
(executable)
index 0000000..
011f83c
--- /dev/null
+++ b/
bin/worldisup
@@ -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