Re: help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-09-07 at 11:15, Davy Leon wrote:
> I'm on dialup and have some question to ask. I have an script wich dials  
> automatically to my ISP to get my email using fetchmail from all my email 
> accounts.
>
> Sometimes after the ppp conection is stablished ok and running for a 
> couple of minuts, it just dies. The modem is still conected but I cannot 
> ping anybody. It doesn't happen all the time, but happens very often. So, 
> the last action of the script is to hang up the modem. When this happens, 
> the result is that the script hangs up but only after every conections I 
> should do gets time out. The result is a phone bill, an internet bill and 
> no email at all. I need a method to detect when this happens and simply 
> disconect and run the conection script again. What do you advice me?

man pppd
disconnect script
Execute the command specified by script, by passing it to a shell, after
pppd has terminated the  link.   This command  could, for example, issue
commands to the modem to cause it to hang up if hardware modem control
signals were not available.  The disconnect script is not run if the
modem has already hung up.  A value for this option from a privileged
source cannot be overridden by a non-privileged user.

You can create chatscript which hang-up modem.

-- 
Kind regards,  Milan
--
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Audio Users]     [Linux for Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux