> -----Original Message-----
> From: Bob Williams [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 04, 2000 10:25 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [plug] [OT] Web Serving with dynamic IP
>
>
> Thanks Lisa,
>
> I think it was your posts I was thinking of...
>
> Any cool ways of getting yourself the IP address? I've
> thought of using
> a freebie web site (provided by my ISP) and ncftpput to
> automatically
> post the number to a page when I go on-line ...or email...or
> one of the
> ICQ-like programs.
I would suggest you sign up for a free dynamic domain name account. I also
have another script which dials-on-demand my ISP once I get disconnected.
So, I don't have to worry to redial again. The script is actually process by
the cron. Yung script ko naman sa baba ay tinatawag ng /etc/ppp/ip-up. What
the script does is supply your username and your account to the variables
user_id and password. Pero yun can write it directly. Next is, it get's your
current ip address and puts it to variable ip_addr. The date is
self-explanatory. The last is the lynx which post the variables to my
http://yi.org account. BTW, this script would be applicable to
http://www.yi.org. If you plan to subscribe to another free dynamic domain,
all you have to do is replace the lynx line. Good luck!
-----------------------------CUT HERE-------------------------------------
#!/bin/sh
user_id="youraccount"
password="yourpassword"
ip_addr=`netstat -rn | egrep ^0.0.0.0 | sed -e "s,.* ,,g" | \
xargs /sbin/ifconfig | grep "inet.addr" | sed -e "s,.*addr:,," \
-e "s, .*,,"`
now=`date`
lynx -source -auth=$user_id:$password \
http://www.yi.org/bin/dyndns.fcgi?ipaddr=$ip_addr | \
sed -e "s,^,$now: ," -e "s,<.*\?>,,g"
-----------------------------CUT HERE-------------------------------------
--
.-------------------------------------------------------.
o^o | Ronneil Camara | [EMAIL PROTECTED] |
/V\ |--------------------| +632 6354086 +63917 5326993 |
// \\ | "The only way to `----------------------------------|
/( )\ | stop a hacker is to think like one." |
^^-^^ | ...brilliant misguided youth |
`-------------------------------------------------------'
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]