home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
tsrvr.zip
/
GETTIME.CMD
next >
Wrap
OS/2 REXX Batch file
|
1995-06-14
|
595b
|
32 lines
/* gettime.cmd 1995-05-06 mjb */
call setlocal
srvpnm = '\pipe\time'
call charout , 'Getting time from server at' srvpnm '... '
call lineout srvpnm, 'time'
l = linein(srvpnm)
if l = '' then do
call lineout , 'failed - no response from server'
call endlocal
return 10
end
parse value l with rc t
if rc <> 'OK' then do
call lineout , 'failed - rc is' rc
call endlocal
return 10
end
call lineout , t
call lineout srvpnm
call endlocal
return 0