From owner-freebsd-doc Wed Aug 16 23:39:11 1995 Return-Path: doc-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id XAA23311 for doc-outgoing; Wed, 16 Aug 1995 23:39:11 -0700 Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.FreeBSD.org (8.6.11/8.6.6) with ESMTP id XAA23301 for ; Wed, 16 Aug 1995 23:39:06 -0700 Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.9/8.6.9) id QAA01150 for doc@freebsd.org; Thu, 17 Aug 1995 16:42:07 +0930 From: Michael Smith Message-Id: <199508170712.QAA01150@genesis.atrad.adelaide.edu.au> Subject: SLIP FAQ, a quick hint for whoever is updating... To: doc@freebsd.org Date: Thu, 17 Aug 1995 16:42:07 +0930 (CST) Content-Type: text Content-Length: 1524 Sender: doc-owner@freebsd.org Precedence: bulk Just to pass along a useful result I've achieved maintaining a dialout SLIP link, for the use of whomever may be maintaining/updating the SLIP FAQ. So far, every solution I've seen for maintaining a SLIP link has involved kermit, which just doesn't get along at all well with SLIP lines. A much simpler, and easily as functional, approach is to make use of slattach's ability to detect carrier, and its redial-command feature. If we assume a 'standard' login process involving a "login:" and "password:" prompt, and a Hayes-compatible modem appropriately configured, we can use the chat program to automate dialling. We prepare a chat script to do the work : /root/chat.script : ABORT BUSY ABORT 'NO CARRIER' TIMEOUT 60 '' ATZ OK-ATZ-OK ATDTxxx-xxxx ogin:--ogin: ssword: And a shell script as a wrapper to avoid redialling endlessly due to a line or modem fault : /root/slipdial : #!/bin/sh until chat -f /root/chat.script; do sleep 300; done (remember to chmod +x /root/slipdial) Now invoke slattach as : slattach -ahs 38400 -r /root/slipdial /dev/cuaa0 (Replace cuaa0 with whatever your serial port is) -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] My car has "demand start" -Terry Lambert UNIX: live FreeBSD or die! [[