Maybe disarm would be useful here:
>> print mold disarm try [ open tcp://www.texastech.edu:1234 ]
make object! [
code: 507
type: access
id: no-connect
arg1: "www.texastech.edu"
arg2: none
arg3: none
near: [open tcp://www.texastech.edu:1234]
where: none
]
[EMAIL PROTECTED] wrote:
>
> At your REBOL console type "help try" (or, equivalently, "? try") to see
> what 'try will do for you. Then do something like this:
>
> check-port: either error? try[open tcp://www.texastech.edu:1234] [...error
> stuff goes here...] [...no error stuff goes here...]
>
> Good luck,
>
> Russ
>
> ----
> At 01:11 PM 1/5/2000 -0600, you wrote:
> >What is the proper way to detect an error when opening a port? For example,
> >
> > check-port: open tcp://www.texastech.edu:1234
> >
> >returns an access error. Can I detect this error in a script without the
> >session quitting? My goal is to send e-mail if a port is unavailable.
> >
> >David Coons
> >Programmer-Analyst
> >Administrative Information Services
> >Texas Tech University
> >
> >
> >
--
Michal Kracik