Hi Ken,
If you know a port is open on a machine you can assume it is doen if you
cannot connect, you dont need any response beyond that a connection is
possible.
maybe these will help
>> either error? try[port: open/no-wait tcp://rebol.com:80]
["ahrgg"][close port "ping!"]
== "ping!"
(with a bad/closed port number)
>> either error? try[port: open/no-wait tcp://rebol.com:0]
["ahrgg"][close port "ping!"]
== "ahrgg"
>> either error? try[port: open/no-wait tcp://whatever.com:80]
["ahggg"][close port "ping!"]
== "ahggg"
>> either error? try[port: open/no-wait tcp://www.whatever.com:80]
["ahggg"][close port "ping!"]
== "ping!"
On Mon, 19 Aug 2002, Ken B. Cadby wrote:
> Thanks Gabriel. Sorry everybody... I'm just a wannabe programmer frustrated at my
>own foibles. In response to pekr's point about no-can-do because of no root access on
>unix (?), I'll just concede that ping is not what I need. I'll call it "hey", "yo",
>"rebyo", "boo", "reboo", "psst", "ying", "zing", "pang", "rebkiss", or something. All
>I really want is to see an echo, or any other response from a live host.
>
> This doesn't work for me:
>
> >>> port: open/no-wait tcp://target.machine:7
> >>> insert port "PING"
> >>> copy port
> >== "PING"
> >>> close port
>
> I get several seconds of nothing, then Cannot connect to (whatever). For (whatever),
>I've tried different IPs, domain names, localhost, other ports besides 7, and udp
>instead of tcp. But ping works <se grin>, and I can get a connection and response in
>rebol using
>
> pop: open/lines tcp://mypopserver.com:110
>
> I'll figure this out if it kills me, or I'll take it to the beginner's rebol group.
>Sorry for buggin' y'all. Then I'll put psst.r in the library if/when I'm done, and
>when I can get it to log the up/down status of a list of hosts. (Presently I'm doing
>this with ping in klever.net's BigBrother, DOS find, redirected batch file output,
>and various file concatenations. Yuk!)
>
> --Ken.
>
>
> ____________________________ ____________________________
> Ah, you hate Microsoft too! So comrade, ven do vee plan to defect?
> --
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the
> subject, without the quotes.
>
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.