______________________________________________________________________________ SLIP/PPP (PC): Linux dip login.cmd script Q. Do you have a login script I can use with dip on Linux? A. Courtesy of Randy Bentson (bentson@grieg.seaslug.org), here's a script that should work. Contact Randy with comments, and send a copy to: support@halcyon.com ------CUT HERE------- #!/sbin/dip -v # echo on main: # Set the desired serial port and speed. port cua0 speed 38400 # the default (and perhaps only # supported) modem is hayes compatable # Reset the modem and terminal line. reset flush # dialing... dial 555-1212 if $errlvl == 0 goto ok1 print dial failed goto exit ok1: wait CONNECT 60 if $errlvl == 0 goto ok2 print didn't see connect message goto exit ok2: # We are connected. Login to the system. login: wait ogin: 20 if $errlvl == 0 goto ok3 print didn't see login message goto exit ok3: send MyAccountName\n wait ord: 10 if $errlvl == 0 goto ok4 print didn't see prompt for password goto exit ok4: send MyPassword\n get $rmtip remote if $errlvl == 0 goto ok5 print didn't get remote machine address goto exit ok5: get $locip remote if $errlvl == 0 goto ok6 print didn't get local machine address goto exit ok6: loggedin: # Set up the SLIP operating parameters. # Smaller numbers help interactive response, # larger numbers help file transfers. ### get $mtu 1006 get $mtu 256 # Set Destination net/address as type 'default' (vice an address). # This is used by the 'route' command to set the kernel routing table. # Some machines seem to require this be done for SLIP to work properly. default # Say hello and fire up! done: print $locip connected to address $rmtip mode CSLIP exit: -----CUT HERE----- (13-Nov-94/sppldlcs/MJT) ______________________________________________________________________________ Copyright 1996 Northwest Nexus Inc. All Rights Reserved. This document may not be reproduced nor redistributed in any form without express permission; contact us at support@halcyon.com with questions.