> I'm able to make a ppp connection on the command line but I'm rather
> baffled why I can't connect with that same information using the
> chat scripts.
> Anyone know how I might translate this working command line:
> pppd connect 'chat -v "" ATDTmyispnumber CONNECT "" ogin: \#mylogin
> word: mypassword' /dev/modem 57600 noipdefault debug crtscts modem defaultroute
> into the chat scripts so they'll behave the same way?
Not all of the command is a chat script. That said, one way to write
the chat script is
"" ATDTmyispnumber
CONNECT ""
ogin: \#mylogin
word: mypassword
although I *think* all you need is to separate the various strings with
either spaces, tabs, or end-of-line. You then need the -f option for
chat in the pppd argument list to specify the filename for the chat
script.
Quote:> I can also get a successful ppp connection with xisp.
> Some of the problems included stu like this left in /var/log/message:
> Connect: ppp0 <--> /dev/modem
> pppd[863]: LCP: timeout sending Config-Requests
> pppd[863]: Connection terminated.
> pppd[863]: Receive serial link is not 8-bit clean:
> pppd[863]: Problem: all had bit 7 set to 0
> pppd[863]: tcflush failed: Invalid argument
> pppd[863]: Hangup (SIGHUP)
> pppd[863]: Exit.
This almost always means the chat script has done something that has
confused teh ISP, or omitted something it needs to start PPP on it's
end, or you are trying a login/password when you should have configured
for PAP or CHAP authentication. There should be chat messages somewhere
in a file in /var/log that may provide a clue as to what's wrong. One
common thing is the CONNECT "" in your script which sends a carriage
return and can confuse an ISP into presenting a text prompt or menu.
Quote:> Is there any problem with just making a file with the command line I
> have above and executing that every time instead?
Nope, except I'd lose the \# unless it actually is part of the login name.
My regular pppd scripts are just that, one line.
--
/* Governments should be changed like diapers - often and for the
* same reason. */