Here is my ppp-on file:
<------------start of /etc/diald/ppp-on --------->
#!/bin/sh
# Modified 11-16-98 lklawson
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command.  However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=8,4491444 # The telephone number for the connection
ACCOUNT=george  # Unused but left in anyway
PASSWORD=gracie  # Unused but left in anyway
LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in.  Please use the absolute file name as the $PATH variable is not
# used on the connect option.  (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/diald/ppp-on-dialer
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/modem 38400 \
 asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
 noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
<----------- end of /etc/diald/ppp-on ---------->

Here is the ppp-on-dialer:
<----------start of /etc/diald/ppp-on-dialer ----->
#!/bin/sh
#
# This is part 2 of the ppp-on script. It will perform the connection
# protocol for the desired connection.
#
exec chat -v      \
 TIMEOUT  3    \
 ABORT  '\nBUSY\r'   \
 ABORT  '\nNO ANSWER\r'   \
 ABORT  '\nRINGING\r\n\r\nRINGING\r' \
 ''  \rAT    \
 'OK-+++\c-OK' ATH0    \
 TIMEOUT  30    \
 OK  ATDT$TELEPHONE   \
 CONNECT  ''
<--------------- end of /etc/diald/ppp-on-dialer ---------->

my /etc/diald.conf is unchanged, I mearly wish to have it execute ppp-on   
(sucessfully) instead of connect.

Thank you,
Kirk Lawson

 ----------
From:  Keith
Sent:  Thursday, November 19, 1998 2:59 AM
To:  Kirk Lawson
Cc:  Linux Diald
Subject:  Re: chat script problem

Kirk Lawson wrote:

> OK.  I've successfully set up diald twice before, but have always used
> the provided connect script.  Now, however, I need to use a chat script
> of my own creation (to satisfy AT&T Worldnet's CHAP requirements).
>  Sadly, I can't seem to get diald to connect properly.
>
> To put it simply, all I want to do is replace the command:
>
> connect /etc/diald/connect
>
> in the /etc/diald.conf file with the command:
>
> connect /etc/diald/ppp-on
>
> thus making it use my ppp-on chat script.  Obviously, I've not got
> something right.  My chat script (/etc/diald/ppp-on) works just fine   
when
> I execute it independently ( ./ppp-on ), but when I replace "connect"
> with "ppp-on" in the command line inside /etc/diald.conf, it refuses to
> pick up and dial, etc.
>
> Can someone please steer me in the right direction on this?  I'm   
getting
> so desperate I even broke down and read the manuals!   ;)
>
> Peace favor your sword,
> Kirk Lawson
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-diald"   
in
> the body of a message to [EMAIL PROTECTED]

What does your ppp-on file look like?

Keith




-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to