From owner-freebsd-questions Sat Jun 10 07:03:27 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA13585 for questions-outgoing; Sat, 10 Jun 1995 07:03:27 -0700 Received: from mpp.com ([204.157.201.242]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id HAA13577 for ; Sat, 10 Jun 1995 07:03:21 -0700 Received: (from mpp@localhost) by mpp.com (8.6.11/8.6.9) id JAA15530; Sat, 10 Jun 1995 09:03:13 -0500 From: Mike Pritchard Message-Id: <199506101403.JAA15530@mpp.com> Subject: Re: PPP redial To: vrozma01@barney.poly.edu (VyacheslavS. Rozman) Date: Sat, 10 Jun 1995 09:03:12 -0500 (CDT) Cc: questions@freebsd.org In-Reply-To: from "VyacheslavS. Rozman" at Jun 9, 95 01:45:58 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1176 Sender: questions-owner@freebsd.org Precedence: bulk > I am using PPP account, and sometimes it is very difficult to connect to > the server because the line is busy. I have to redial many times. I would > greately appreciate it if someone could help me to establish an > automatic redial feature. > Thank you for your time. > Slava. Here are the guts of my PPP connection script that I run whenever I want to startup my PPP link. If the connection fails (line busy, modems wouldn't talk, whatever) it will sleep for a while and retry everything. scripts. ---cut here--- #!/bin/sh # # startppp [-v] # # -v = Call chat with "-v" to produce verbose output to help debug # connection problems. DEBUG= set -- `getopt tv $*` if [ $? -ne 0 ] then echo "usage: startppp [-v]" exit 1 fi for i do case "$i" in -v) DEBUG=-v shift;; --) shift break;; esac done ( while true do pppd -detach connect "chat $DEBUG -f /etc/ppp/ppp-chat" /dev/modem 115200 if [ $? -eq 0 ] then break; fi sleep 60 logger -p local0.info -t PPP Retrying PPP connection done ) < /dev/null > /dev/null 2>&1 & -- Mike Pritchard mpp@legarto.minn.net "Go that way. Really fast. If something gets in your way, turn"