home *** CD-ROM | disk | FTP | other *** search
- /* RhinoCom Script - Start a Client BEM */
-
- call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
- call SysLoadFuncs
-
- /* get the phone number from the user */
- 'RQUERY phone-number'
- num = rc
- 'ENTRYFIELD "Enter phone number to dial" "Enter Number" "'||num||'"'
- num = rc
- if num = '' then signal quit
- 'RSET phone-number' num
-
- 'UNLOADSPLICE BEMSPL'
-
- /* get the comport number from the user */
- 'RQUERY comport'
- port = rc
- 'ENTRYFIELD "Enter COM port" "Enter Port" "'||port||'"'
- port = rc
- if port = '' then signal quit
- 'RSET comport' port
-
-
- address CMD /* command environment to OS/2 CMD.EXE */
- 'SET BEMTMP=.'
- file = SysSearchPath( BEMTMP, 'bem.cfg' )
- if file = '' then do
- 'config'
- end
- 'start pld'
-
- address /* return command environment to RhinoCom */
-
- 'response 1 match /CONNECT/ /RESPONSE 1 CANCEL/ /LOADSPLICE BEMSPL/'
-
- call SysSleep 5
- 'Dial ONCE WAIT'
- exit
-
- /* if user aborts, close YAK */
-
- quit:
- 'menuaction ExitProgram'
- exit
-
-