Re: script to stay connected//dynamic IPs

2004-06-02 Thread Mal Beaton
Sturla Holm Hansen wrote: David Baron wrote: On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: Incoming from David Baron: Is there a little script that can be cron-d to check if the internet connection (pptp -> ppp0) is up and if not, reconnect? Try using the keyword "persist"

Re: script to stay connected//dynamic IPs

2004-06-02 Thread Mal Beaton
Sturla Holm Hansen wrote: David Baron wrote: On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: Incoming from David Baron: Is there a little script that can be cron-d to check if the internet connection (pptp -> ppp0) is up and if not, reconnect? Try using the keyword "persist"

Re: script to stay connected//dynamic IPs

2004-06-02 Thread David Baron
On Wednesday 02 June 2004 17:17, [EMAIL PROTECTED] wrote: > Just run a cron-job with a script like this > > #!/bin/bash > > ifconfig ppp0 > if [ $? != "0" ] > then >     ifup ppp0 > fi This an another, similar script posted did not quite work. Ifup says ppp0 is an unconfigured device if not conn

Re: script to stay connected

2004-06-02 Thread Matthias Czapla
On Wed, Jun 02, 2004 at 12:18:04AM +0300, David Baron wrote: > Is there a little script that can be cron-d to check if the internet > connection (pptp -> ppp0) is up and if not, reconnect? I have the following in /etc/ppp/ip-down.d/reconnect: ( sleep 5 while ! ifconfig | grep ppp0 >/dev/null 2>&

Re: script to stay connected//dynamic IPs

2004-06-02 Thread Sturla Holm Hansen
David Baron wrote: On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: Incoming from David Baron: Is there a little script that can be cron-d to check if the internet connection (pptp -> ppp0) is up and if not, reconnect? Try using the keyword "persist" in /etc/ppp/options.

Re: script to stay connected//dynamic IPs

2004-06-02 Thread David Baron
On Wednesday 02 June 2004 03:06, [EMAIL PROTECTED] wrote: > Incoming from David Baron: > > Is there a little script that can be cron-d to check if the internet > > connection (pptp -> ppp0) is up and if not, reconnect? > > Try using the keyword "persist" in /etc/ppp/options. It is there. Sporadic

Re: script to stay connected

2004-06-01 Thread Cameron Hutchison
Once upon a time s. keeling said... > Incoming from David Baron: > > Is there a little script that can be cron-d to check if the internet > > connection (pptp -> ppp0) is up and if not, reconnect? > > Try using the keyword "persist" in /etc/ppp/options. For some reason, that does not work for me

Re: script to stay connected

2004-06-01 Thread s. keeling
Incoming from David Baron: > Is there a little script that can be cron-d to check if the internet > connection (pptp -> ppp0) is up and if not, reconnect? Try using the keyword "persist" in /etc/ppp/options. -- Any technology distinguishable from magic is insufficiently advanced. (*)

script to stay connected

2004-06-01 Thread David Baron
Is there a little script that can be cron-d to check if the internet connection (pptp -> ppp0) is up and if not, reconnect? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]