home *** CD-ROM | disk | FTP | other *** search
- These scripts might be useful for those of us whose slip links
- go down or get jammed with regularity. They use the "expect" scripting
- language which is based on TCL.
-
- The script pings the remote side of your slip link and restarts it if there is
- no answer.
-
- 1) Obviously the scripts would need to be customized for the /etc/hosts or
- ip number you use for your far end slip link.
-
- 2) You need to change the remote slip links phone number.
-
- 3) You may need to change the tip entry for the port you use for slip.
-
- 4) Also some of the directories need to be altered. I rooted everything so as
- to not need an extensive path and to make the system a bit more secure.
-
- 5) Lastly the modem dialog might be different in your system if you don't have a
- T2500.
-
- I am using "gated" on my system that seems to need to be killed and restarted
- when a slip link goes down. If you are using another router alter that section
- or comment it out.
-
- I'm pretty happy about the flexibility inherent in "expect". It can basically
- do anything I can do from a terminal with a little programming.
-
- When you're done make the scripts executable, copy them into /usr/local/bin
- and create a crontab entry that looks like this:
- 5,35 * * * * /usr/local/bin/slip-alive.exp
-
-
- This was tested on a Sun 3/60 with a T2500 running expect-3.24.0, slip-4.0 and
- gated-2.0.1.14.
-
- This is in the public domain. Its too small to sweat it.
- --
- Edward Elhauge, ee@lever.com, Jun 1993
-