On Sat Dec 13 08:21:36 EST 2003, Henning Jebsen <[EMAIL PROTECTED]> wrote:
Hi Raymond,I'm curious how to get pppd to auto redial when my connection dies.I got another approach than using inittab/respawn.
You simple could do a tail -f onto /var/log/messages and then search for a specific string. The search is done by
awk in my case.
I use that method for all kinds of messages, I want to be tracked.
My script goes like this: tail --retry -f /var/log/messages | awk '{ do anything }'
If awk finds that string it will restart pppd, or whatever you need.
This works -of.course- only if pppd writes someting into /var/log/messages if the connection state changes. I think, pppd does write something into the logfile. Think of increasing the debug level ;-).
This way is fast,flexible and doesn't consume much ressources, I like it ;-)
bye
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html
-- Raymond Page
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click ------------------------------------------------------------------------ leaf-user mailing list: [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html