Hallo, On Mon, 15 Apr 2002, Uwe Schindler wrote:
#!/bin/bash IP_INET=$(/sbin/ifconfig | grep "P-t-P" | cut -d: -f2 | cut -d" " -f1)
ARGL! IP_INET="`/sbin/ifconfig ppp0 | sed -n 's/.*addr:\([0-9\.]*\).*/\1/p'`"
echo >/daten/tmp/home.html '<HTML><HEAD><TITLE>Home</TITLE><HEAD><BODY>http://'$IP_INET'>webserver </a></BODY></HTML>'
Was soll das?
echo $IP_INET
Und das? Hier sind dir irgendwie die Zeilen durch einander gekommen. Verwende besser echo "<html>...http://$IP_INET\">...</html>" \ > /daten/tmp/home.html oder cat <<EOF > /daten/tmp/home.html <html> <head> <title>Home</title> </head> <body> <a href="http://$IP_INET/">Webserver</a> </body> </html> EOF
cd /daten/tmp/ /usr/bin/ftp ftp://www.meinewebseite.de:passwort@www.meinewebseite.de/<
ftp kennt keine Praefixe! Und auch der slash am Ende duerfte
ftp irritieren. Nimm einfach:
/usr/bin/ftp "www.meineseite.de:passwort@www.meineseite.de" < bin
put home.html
bye
EOF -dnh
--
"There are three types of people in this world - those who see the light,
those who don't, and those who get a brief glance of it just as I slam
the door in their face" -- snarfed from Mike Andrews