Reply to mail from Dave Mielke about Can't use script to dial in to ISP
-----------------
> My guess is that you probably spread the rather long "pppd" command line over
> multiple lines within the script, but did not correctly indicate line
> continuation. Try terminating all but the last line of the "pppd" command with
> a backslash (\). N.B.: you must not have any trailing blanks after the
> backslash.

a sample ppp script that shows this is:

 /usr/sbin/pppd /dev/modem 115200 \
  crtscts modem lock \
  ipcp-accept-remote ipcp-accept-local noipdefault \
  lcp-echo-failure 12 lcp-echo-interval 5 \
  nodefaultroute proxyarp \
  persist holdoff 5 idle 86400 maxconnect 2592000 \
  deflate 15,15 \
  user david remotename wgn \
  connect /etc/rc.d/chat.sh

and the chat script: (fake numbers)

number='555-1234'               #psi-santa ana
#number='555-5678'              #psi-santa ana2

 exec /usr/sbin/chat -V -r /var/log/connect-rates -v \
  TIMEOUT 3\
  REPORT CARRIER \
  REPORT CONNECT \
  ABORT '\nBUSY\r' \
  ABORT '\nNO ANSWER\r' \
  ABORT '\nNO CARRIER\r' \
  ABORT '\nNO DIALTONE\r' \
  ABORT '\nRINGING\r\n\r\nRINGING\r' \
  '' "ATM0L3W0&D2DT${number}" \
  TIMEOUT 45 'CONN' ''


-d
p.s. this script requires pppd 2.3.5
-- 
  Look, Windows 98  Buy, lemmings, buy!  MCSE, Must Consult Someone Experienced
__ (c) 1998 David Ford.  Redistribution via the Microsoft Network is prohibited
\/  for linux-kernel: please read linux/Documentation/* before posting problems

Reply via email to