*BSD News Article 82146


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!www.nntp.primenet.com!nntp.primenet.com!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@anorak.coverform.lan (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: iij-ppp auto-dial question
Date: 2 Nov 1996 23:53:37 -0000
Organization: Coverform Ltd.
Lines: 31
Sender: brian@awfulhak.demon.co.uk
Message-ID: <55gmu1$6r4@anorak.coverform.lan>
References: <3275B954.41C67EA6@qlink.queensu.ca>
Reply-To: brian@awfulhak.demon.co.uk
NNTP-Posting-Host: anorak.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <3275B954.41C67EA6@qlink.queensu.ca>,
	Jake <3rlk1@qlink.queensu.ca> writes:
: Hi, I have iij-ppp setup to autodial on my system, but it is a pain to
: logoff of my ISP.  I have a little shell script that starts ppp -auto,
: then starts ping which causes ppp to dial in.  However, when I want to
: logoff I have to telnet to 127.0.0.1 3000 as root, type close, then quit
: all.  How can I automate this?  Maybe with a shell script?  Right now I
: just ahve a ppp option in my ctwm menu, that starts ppp, and starts
: pinging, I know ehn I am logged in because the pings starts getting
: through.  I would like to have another option like pppdown, that logs me
: off automagically.  Is this possible?  Is there any harm ion just
: letting it time out?  I'm on for free through the university so time is
: not a factor.

I have a program called tcpchat - it "chat"s to a tcp port.  It's good
for doing things like writing a "connect nnn" script where nnn is the
ppp timeout - the script says:

#! /bin/sh
val=$1
test -z "$val" && val=300
tcpchat -v localhost ppp "> " "set timeout $val" "> " "show timeout" "> " quit
ping -c1 demon-du </dev/null >&0 2>&0 &

Have a look on my web page below.

-- 
Brian <brian@awfulhak.demon.co.uk>
      <http://www.awfulhak.demon.co.uk/>
Don't _EVER_ lose your sense of humour....
.