]>
git.sthu.org Git - shutils.git/blob - nsd/nsd-update
3 watchfile
=/tmp
/$
(hostname
).ip
8 echo "$0 [--watchfile=$watchfile] <server>"
21 pubip
=$
(/usr
/local
/bin
/printPublicIp
)
23 if ! echo "$pubip" |
egrep -q "^([0-9]+\\.)+[0-9]+$" ; then
24 echo "Wrong IP address format"
28 echo "Notify $server that $(hostname) has address ${pubip}."
30 .
$HOME/.profile-sshagent
31 ssh $server "echo $pubip > /tmp/euklid.ip"