home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / ccniak.zip / CCNIAK.CMD next >
OS/2 REXX Batch file  |  1994-11-23  |  4KB  |  103 lines

  1. @echo off
  2. goto start
  3.  
  4.  11-23-94 CCNIAK.CMD (File 1 of 2)
  5.  With the compliments of:
  6.      Chacko Neroth (address: cheroth@hooked.net)
  7.  
  8. This command can be used for starting a SLIP connection to a TIA
  9. provider from OS/2 Warp Internet Access Kit.  This starts slip from
  10. an os2 window rather than using the PM interface and then runs
  11. hooked2.cmd. This has the advantage that all parameters used are
  12. located at easily modifiable files, and uses less resources than the
  13. PM interface.  If you choose, you can use the hooked.cmd with the
  14. SLIPPM.EXE.
  15.  
  16. hooked2.cmd. (File 2 of 2) is a modified version of the script from the
  17. IAK.  It is set up for use with the internet provider Hooked, in San
  18. Francisco. Also it will redial the number if the line is busy.
  19.  
  20.  
  21.  INSTALLATION AND USE
  22.  1. Install OS/2 Warp's Internet access option (if not already installed)
  23.  
  24.  2. Modify this file ( the set standard= line below in this file)
  25.        for your comport if it is not com2
  26.  
  27.  2a. If you like, modify the priority to -p3, which IBM uses.
  28.      I find -p2 much better for overall system performance.
  29.  
  30.  3. Modify the HOOKED2.CMD (File 2 of 2) for your (see lines /*MODIFY ...*/)
  31.         access phone number, and any modem setup commands your modem needs
  32.         login name
  33.         password
  34.         provider's path for TIA if needed
  35.         provider's ip address, if the provider is not Hooked
  36.         provider's net mask,   if the provider is not Hooked
  37.  
  38.  4. Place the above 2 files in your x:\TCPIP\BIN directory
  39.  
  40.  5. Issue the command CCNIAK from any os2 window.
  41.  
  42.  6. To terminate the connection, go to the os2 window named SLIP and type
  43.       a control-c.  The phone will be disconnected.
  44.  
  45. The window name SLIP will show the status of connection. If the
  46. provider has TIA available, and if the connection is made properly,
  47. it will show "SLIP Driver running..."  This window can now be
  48. minimized.
  49.  
  50. At this point, any of the IAK tools such as WEB/2, Gopher, News
  51. Reader, can be started and used.  For the author, all parts of the
  52. IAK are working except mail cannot be received.  Mail can be sent
  53. from UMAIL as well as the News reader and News can be posted from the
  54. news reader. (IBM is reported to be working on a fix for the UMAIL
  55. problems.)
  56.  
  57. KNOWN DEFICIENCY
  58.  
  59. 1. If TIA gives an error msg such as TIA has expired, or cannot find a
  60. time server, which it occasionally does if the program is on
  61. evaluation status, the script will simply wait for ever for the
  62. proper msg.  Just issue one or more ctl-C to stop the script and then
  63. reissue CCNIAK to attempt the connection again.
  64.  
  65. 2. The only abnormal condition handled during dial up is BUSY, for
  66. which redial is done.  All other conditions other than CONNECT will
  67. hang the script. 
  68.  
  69.  
  70. Slip parameters are documented below for reference only.
  71.  
  72. -com<n>                     Use com port <n> for interface sl0.
  73. -connect "command"          Invoke command to setup modem connection.
  74. -d                          Increase debug level.
  75. -exit <timeout>             Exit SL/IP <timeout> minutes after line disconnect.
  76. -f <config file>            Use <config file> instead of default: slip.cfg.
  77. -hangup <command>           Send <command> to sl0 com port on exit.
  78. -idle <timeout>             Exit SL/IP after <timeout> minutes of idle time.
  79. -ifconfig <ipaddr> <ipdest> Configure sl0 with the specified IP addresses,
  80.           +defaultroute     optionally add a default route through <ipdest>,
  81.              +proxyarp         make a proxy ARP entry for <ipdest> using <ipaddr>.
  82. -modem <command>            Send modem <command> to interface sl0 com port.
  83. -mtu <size>                 Set interface sl0 MTU to <size>.
  84. -nocfg                      Ignore configuration file.
  85. -notify                     Notify on termination of Data Carrier Detect.
  86. -p<n>                       Run SL/IP at priority <n>, where <n> =1-4. If <n>
  87.                             is ommitted run in time critical server mode, <n>=3.
  88. -rtscts                     Use RTS/CTS hardware flow control.
  89. -speed <baud>               Set sl0 com port speed to <baud>.
  90. -t[i|o]                     Trace input and output packets.
  91. -vj                         Use VJ header compression for interface sl0.
  92.  
  93. :start
  94. setlocal
  95.  
  96. set priority=-p2
  97. set standard=-exit 0 -com2 -speed 57600 -mtu 1006 -nocfg -idle 10
  98. set flow=-rtscts
  99. set connect=-connect hooked2.cmd
  100.  
  101. start "SLIP" /F slip %priority% %standard% %flow% %connect%
  102. echo See SLIP window for connection status
  103.