At 16:07 04/07/2000 -0500, Matt wrote:
>Okay .. here's my silly way of creating a fortune powered webpage (here
>i'm using Optushome - no perl/php/asp/.bat there :).
>echo "My Linux Box has the qualities: " >> index.html
>date >> index.html
>uname -a >> index.html
>uptime >> index.html
>
>in there if you wanted to (uptimes - you know you want to :)
http://deimos.yi.org
I do similar stuff on my home machine in real time with a couple of perl
scripts. The main page redirects you to a cgi which outputs a fortune at
the bottom (also using <pre>), there's a link there to Sysmon, which
outputs various info about the health of the machine. Obviously not
everyone has cgi available to them on their service provider's web servers
so that's not for everyone.
I've also got a script cron'ed to run every ten minutes that reformats micq
logs and dumps them somewhere i can get to them.
http://freshmeat.net/appindex/2000/06/06/960282284.html
The box used to post its ip address on a web page for me when it
reconnected, back in the days when dyn.ml.org was close to death. I had a
script that would redial if the connection dropped out and /etc/ppp/ip-up
called a shell script that reposted the new address. Pretty simple and it
works fine.
#!/bin/sh
IP=`/sbin/ifconfig ppp0|grep inet|cut -d: -f2|cut -d\ -f1`
echo "<html><body>" > /tmp/up.$$
echo "current ip: $IP" >> /tmp/up.$$
echo "</body></html>" >> /tmp/up.$$
echo "user $USER $PASS" > /tmp/upscript.$$
echo "cd public_html" >> /tmp/upscript.$$
echo "ascii" >> /tmp/upscript.$$
echo "send /tmp/up.$$ ip.html" >> /tmp/upscript.$$
echo "quit" >> /tmp/upscript.$$
ftp -n ftp.ozemail.com.au < /tmp/upscript.$$
rm -f /tmp/up*.$$
--
Alexander Else
Internet Operations Technician
UUNET Asia Pacific Network Services
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text