*BSD News Article 81918


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!newspump.sol.net!howland.erols.net!news.mathworks.com!uunet!in2.uu.net!01-newsfeed.univie.ac.at!cmir.arnes.si!eunet.si!news
From: Blaz Zupan <blaz.zupan@medinet.si>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: iij-ppp auto-dial question
Date: Tue, 29 Oct 1996 21:16:41 +0100
Organization: Medinet
Lines: 23
Message-ID: <32766629.167EB0E7@medinet.si>
References: <3275B954.41C67EA6@qlink.queensu.ca>
NNTP-Posting-Host: gold.medinet.si
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0Gold (X11; I; FreeBSD 2.1.5-RELEASE i386)
To: Jake <3rlk1@qlink.queensu.ca>

Jake wrote:
> 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.

From you description I would say you DON'T NEED dial on demand.
Just setup the kernel-based PPP (pppd) and create two scripts,
f.e. one called "startnet" and one called "stopnet". The first
starts pppd, the second sends a kill signal to pppd.

Blaz

-- 
Blaz Zupan, blaz.zupan@medinet.si, http://www.medinet.si/~blaz
Medinet d.o.o., Linhartova 21, 2000 Maribor, Slovenia