git://git.jankratochvil.net
/
nethome.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
+SunOS compatibility
[nethome.git]
/
bin
/
worldisup
1
#!/bin/sh
2
t=/tmp/worldisup.$$
3
4
(date
5
echo -e "\n$SSH_CLIENT\n"
6
h="`echo "$SSH_CLIENT"|awk '{print $1}'`"
7
host -a "$h"
8
~/bin/ghortident $SSH_CLIENT
9
n="`host -a "$h" 2>&1|sed -n 's/^Name: \(.*\)/\1/p'`"
10
n="${n:-h}"
11
echo -e "\nssh -v $n -p 56122\ntelnet $n 56123"
12
) 2>&1|todos >$t
13
mv $t ~/WWW/home.txt