home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format 103
/
af103b.adf
/
ARexx
/
no_port.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-08-28
|
445b
|
28 lines
/* no_port.rexx - a syntax trap example... */
signal on syntax
address 'somenonexistentport'
/* now try and send a command to the non-existent port... */
'hello port'
quit:
exit /* end of main program */
syntax:
if rc=13 then
do
say 'sorry - there is no port available called...'
say Address()
say 'you need to have the utility which sets up this port'
say 'up and running BEFORE you execute this script'
end
signal quit