Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Nov 1998 16:44:48 -0800 (PST)
From:      Doug White <dwhite@resnet.uoregon.edu>
To:        Dovydas Kulvinskas <dovydas@kada.lt>
Cc:        FreeBSD questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Script under KPPP
Message-ID:  <Pine.BSF.4.03.9811161642030.17775-100000@resnet.uoregon.edu>
In-Reply-To: <364FF63D.9111FEF7@kada.lt>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Nov 1998, Dovydas Kulvinskas wrote:

>   Hello,
> 
>   I'm using such a script under M$ but i want to use it under FreeBSD -
> KPPP. How it should look like?
> 
>  proc main
> 
> 	watfor "name:"
> 	transmit $USERID
> 	transmit "^M"
> 
> 	waitfor	"sword:"
> 	transmit $PASSWORD
> 	transmit "^M"
> 
> 	waitfor ">"
> 	transmit "ppp x.x.x.x"
> 	transmit "^M"
> 
> 	waitfor "sword:"
> 	transmit $PASSWORD
> 	transmit "^M"
> 
> 	waitfor "Entering"

You're going to get a treat, I'll write up a chat script for ya:

set login "TIMEOUT 20 name: myusername sword: \\P \> \"ppp x.x.x.x sword:
\\P Entering"

See the chat manpage for details on how this works.  Set your password
using the 'set authkey XXYY' command.

Doug White                               
Internet:  dwhite@resnet.uoregon.edu    | FreeBSD: The Power to Serve
http://gladstone.uoregon.edu/~dwhite    | www.freebsd.org


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9811161642030.17775-100000>