home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 18 REXX
/
18-REXX.zip
/
page.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1995-07-13
|
1KB
|
36 lines
/************************************************************/
/* PAGE.CMD */
/* DIALS PAGER WITH NUMERIC MESSAGE */
/* ALAN STEIN 7/5/95 astein@mobile.bam.com */
/************************************************************/
/* args: */
/* name = name of person to be called (ie. Alan) */
/* number = number of pager (ie. 7775441) */
/* message = numeric message to be sent (ie. 9760000)*/
/************************************************************/
arg name number message
'@echo off'
ModemPort = "COM2"
call RxFuncAdd 'SysLoadFuncs' , 'RexxUtil' , 'SysLoadFuncs'
call SysLoadFuncs
say 'Currently Dialing... '||name||' @ '||number
say ' Message = '||message
call dialphone
exit
/************************************************************/
dialphone:
State = STREAM(ModemPort,"C","OPEN")
"@MODE" ModemPort":38400,N,8,1 > NUL"
CALLINE = "ATDT"||number||"@"||message
CALL LINEOUT ModemPort, CALLINE /* Dial Phone */
CALL SYSSLEEP 20
CALL LINEOUT ModemPort, "ATh0" /* Hang Up */
State = STREAM(ModemPort,"C","CLOSE")
return
/************************************************************/