home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
ccniak.zip
/
CCNIAK.CMD
next >
Wrap
OS/2 REXX Batch file
|
1994-11-23
|
4KB
|
103 lines
@echo off
goto start
11-23-94 CCNIAK.CMD (File 1 of 2)
With the compliments of:
Chacko Neroth (address: cheroth@hooked.net)
This command can be used for starting a SLIP connection to a TIA
provider from OS/2 Warp Internet Access Kit. This starts slip from
an os2 window rather than using the PM interface and then runs
hooked2.cmd. This has the advantage that all parameters used are
located at easily modifiable files, and uses less resources than the
PM interface. If you choose, you can use the hooked.cmd with the
SLIPPM.EXE.
hooked2.cmd. (File 2 of 2) is a modified version of the script from the
IAK. It is set up for use with the internet provider Hooked, in San
Francisco. Also it will redial the number if the line is busy.
INSTALLATION AND USE
1. Install OS/2 Warp's Internet access option (if not already installed)
2. Modify this file ( the set standard= line below in this file)
for your comport if it is not com2
2a. If you like, modify the priority to -p3, which IBM uses.
I find -p2 much better for overall system performance.
3. Modify the HOOKED2.CMD (File 2 of 2) for your (see lines /*MODIFY ...*/)
access phone number, and any modem setup commands your modem needs
login name
password
provider's path for TIA if needed
provider's ip address, if the provider is not Hooked
provider's net mask, if the provider is not Hooked
4. Place the above 2 files in your x:\TCPIP\BIN directory
5. Issue the command CCNIAK from any os2 window.
6. To terminate the connection, go to the os2 window named SLIP and type
a control-c. The phone will be disconnected.
The window name SLIP will show the status of connection. If the
provider has TIA available, and if the connection is made properly,
it will show "SLIP Driver running..." This window can now be
minimized.
At this point, any of the IAK tools such as WEB/2, Gopher, News
Reader, can be started and used. For the author, all parts of the
IAK are working except mail cannot be received. Mail can be sent
from UMAIL as well as the News reader and News can be posted from the
news reader. (IBM is reported to be working on a fix for the UMAIL
problems.)
KNOWN DEFICIENCY
1. If TIA gives an error msg such as TIA has expired, or cannot find a
time server, which it occasionally does if the program is on
evaluation status, the script will simply wait for ever for the
proper msg. Just issue one or more ctl-C to stop the script and then
reissue CCNIAK to attempt the connection again.
2. The only abnormal condition handled during dial up is BUSY, for
which redial is done. All other conditions other than CONNECT will
hang the script.
Slip parameters are documented below for reference only.
-com<n> Use com port <n> for interface sl0.
-connect "command" Invoke command to setup modem connection.
-d Increase debug level.
-exit <timeout> Exit SL/IP <timeout> minutes after line disconnect.
-f <config file> Use <config file> instead of default: slip.cfg.
-hangup <command> Send <command> to sl0 com port on exit.
-idle <timeout> Exit SL/IP after <timeout> minutes of idle time.
-ifconfig <ipaddr> <ipdest> Configure sl0 with the specified IP addresses,
+defaultroute optionally add a default route through <ipdest>,
+proxyarp make a proxy ARP entry for <ipdest> using <ipaddr>.
-modem <command> Send modem <command> to interface sl0 com port.
-mtu <size> Set interface sl0 MTU to <size>.
-nocfg Ignore configuration file.
-notify Notify on termination of Data Carrier Detect.
-p<n> Run SL/IP at priority <n>, where <n> =1-4. If <n>
is ommitted run in time critical server mode, <n>=3.
-rtscts Use RTS/CTS hardware flow control.
-speed <baud> Set sl0 com port speed to <baud>.
-t[i|o] Trace input and output packets.
-vj Use VJ header compression for interface sl0.
:start
setlocal
set priority=-p2
set standard=-exit 0 -com2 -speed 57600 -mtu 1006 -nocfg -idle 10
set flow=-rtscts
set connect=-connect hooked2.cmd
start "SLIP" /F slip %priority% %standard% %flow% %connect%
echo See SLIP window for connection status