Hi Robert.

 > My ISP kills my ISDN connection every 8 hours and so I have
 > to reconnect (of course I get a new dynamic IP, but doesn't
 > matter)

My ISP disconnects after 60 minutes, and I'm set up to dial
straight back in. However, I'm not on an ISDN connection, so
YMMV.

 > Does someone know how reconnect automatically without just
 > setting dialing to "auto" and ensure that there is always a
 > minium traffic to autodial after disconnection.

I use wvdial to set up my connection, and it reconnects on
disconnect by default. You may wish to look into doing that.

 > How can I do something like an event-handler to force
 > reconnect exactly that second when it happens?

With wvdial you don't need to.

 > I also want to send my new dynamic IP immediately after
 > reconnect to dynhost.com. I've no idea where to insert the
 > execution of a script. I don't want to do lame cron jobs
 > but a real event-handler script.

That's the easy part if you're using pppd to run your link: Every
time pppd connects, it runs /etc/ppp/ip-up which performs certain
standard tasks, then runs /etc/ppp/ip-up.local with the same set
of parameters.

As a result, all you have to do is to create a script called
something like `updatedns` that takes as its only parameter the
current dynamic DNS to be updated with, and performs whatever is
required to update the server, then put the following line in
/etc/ppp/ip-up.local to run it:

        /usr/local/sbin/updatedns $4

That assumes you dropped the updatedns script into the specified
directory.

 > Any help would be appreciated.

NP.

Best wishes from Riley GM7GOD / KB8PPG.

---
 * God Made 7 Greedy Old Devils
 * Kilroy Bought 8 Personal Pregnancy Guides

Reply via email to