home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
erotore.zip
/
gethost.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-04-17
|
416b
|
23 lines
/* */
Parse Arg ServerNames
If RxFuncQuery("SockLoadFuncs") Then
Do
Call RxFuncAdd "SockLoadFuncs","RXSOCK","SockLoadFuncs"
ok = SockLoadFuncs()
End
N = Words(ServerNames)
Do i=1 to N
Server = Word(ServerNames,i)
rc = SockGetHostByName(Server, "Host.!")
qq.i = Server Host.!addr;Drop Host.!addr
End
ok = lineout('temphost',,1)
Do i=1 to N
ok = lineout('temphost',qq.i)
End