Hi, everyone,
   I spent the whole night, but I couldn't finish login.dip file for
accessing the internet....so please take a look at the attached file and 
point out the problem if you really have time, thank you !!
   the errors comes from errors 4, 5, 6 and 9......that means the script
file can finish up dialing up the IF account phone # 4759996, but it
cann't login on the system, and so on....
   I couldn't figure out the DNS in the CS homepage....so I used the one
(ie, 165.87.194.244) my friend in HK :) does it matter??
       
    Thank you for your help in advance :)
    
Cheers,
Tak
###############################################################################
# DIP script to connect to a Xylogics Micro Annex
# Written by Kevin Layer ([EMAIL PROTECTED]) with help from John
#   Foderaro ([EMAIL PROTECTED]).

  # Fetch the IP address of our target host.
main:

  # Set the desired serial port and speed.
  port /dev/modem
  speed 38400

  # Reset the modem and terminal line.
  reset

  # Prepare for dialing.
  send ATZ\r
  wait OK 10
  if $errlvl != 0 goto error1
  dial 4759996
  if $errlvl != 1 goto error2

  # We are connected.  Login to the system.
login:
  wait ogin: 20
  if $errlvl != 0 goto error4
  send ifpq748\n
  wait ord: 20
  if $errlvl != 0 goto error5
  send PASSWORD\n
  wait ion: 10
  if $errlvl != 0 goto error6
  send slip\n
  get $remote 165.87.194.244
  if $errlvl != 0 goto error9
  get $local remote 5
  
done:
  print CONNECTED to $remote with address $local we are $local
  default
  mode CSLIP
  goto exit
error1:
  print error.
error2:
print 2.
error4:
print 4.
error5:
print 5.
error6:
print 6.
error9:
print 9.     
exit:

Reply via email to