Hi, everybody,
I was debugging a slip.dip script. Also I use a shell script( called
net, which is attached in this news) in Root account.
My net shell script failed. After that I manually use the /sbin/dip -t
I got the " Unknown server error " and quit.
Appreciate any advice.
/George
[
Net < 1K ]
#!/bin/sh
# shell script to dial in using dip
# and place a dynamically assigned IP address
# into /etc/hosts
#
# Mon Nov 11 00:34:18 MET 1996
PATH=/bin:/usr/bin:/sbin:/usr/sbin
IP=/tmp/ip$$
NAME=/tmp/name$$
set -e
dip slip.dip
until ifconfig | fgrep P-t-P> /dev/null
do echo Waiting for ifconfig to report connection...
sleep 2
done
ifconfig | sed -n '/P-t-P/s/inet addr: *\([0-9.]*\).*/\1/p' > $IP
host $(cat $IP) | sed -n 's/Name: *//p' > $NAME
hostname --file $NAME
echo Host name set to $(hostname)
echo -e 127.0.0.1\\tlocalhost\\t$(cat /etc/hostname) > /etc/hosts
paste $IP $NAME >> /etc/hosts
rm -f $IP $NAME
runq