Author Topic: How To Redial Automatically When Pppd Drops Line  (Read 2255 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
How To Redial Automatically When Pppd Drops Line
« on: June 03, 2007, 10:10:23 am »
This is not a Z specific question, but a desktop linux thing too...

I often let stuff download overnight on a slow connection, inevitably to find out that pppd dropped the carrier after an hour let's say and the rest of the night has been wasted...

How can check that the line hasn't been dropped, via ping or so, and if it has been, then have the script automatically redial via pon?
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
How To Redial Automatically When Pppd Drops Line
« Reply #1 on: June 03, 2007, 11:18:47 am »
There are probably better ways but, you can run "grep ppp `ifconfig`" or something, if that comes up empty, redial.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM