Re: test if socket is open only



In article <1141675081.249663.109660@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"usaims" <usaims@xxxxxxxxx> wrote:

Thank you Mike, thats what I was looking for. Now, what would be the
'perlish' way of doing this across 100 nodes?

You need to quote some context of the message you are replying like I
have done. Check the group posting guidelines for instructions on doing
this via Google Groups.

How do you have the list of IPs stored? If you have an array your
could use a for loop but I'm not sure that sample code should be used in
such a case. I imagine it would leave all of the connections open until
the script was finished. Perhaps scoping the IO::Socket::INET to the
for loop would cause the object to get destroyed right away closing the
connection. There are likely much better choices for doing the actual
verification of the port being open but I haven't done sockets stuff in
perl for some time.

--
Michael
michael@xxxxxxxxxxxx
.



Relevant Pages

  • Re: Macros and symbols across packages
    ... [Please quote some context when replying.] ... > However, I just tried your loop example with LW 4.4, and it works ...
    (comp.lang.lisp)
  • Re: Yoko broke up the band
    ... specific context and manipulated a certain way, ... sounds, like, say, a toilet flush, or the background noises in 4'33", ... interesting in the context of musical art. ... Another example would be the chopped-up tape loop at the end of Sgt ...
    (rec.music.beatles)
  • Re: Can somebody Help me??
    ... True if that statement is inside a DO loop. ... But then I'll agree with those who said that there isn't enough context ... the compiler's complaint might be about ios. ... misplacement is common. ...
    (comp.lang.fortran)
  • Re: "also" to balance "else" ?
    ... In a for loop the normal, as in terminating normally, behavior of a loop ... In the above it works out that the negative search result is a successful loop completion, so the else reads correctly in that context. ... If the context was one of verifying completeness or correctness of a collection, then the context would be reversed and the else would indicate success instead of failure. ...
    (comp.lang.python)
  • Handling of long loops in X-windows programmes
    ... In an X windows programme, any processing actually occurs in a context where ... pending, and if so, return control to X-windows, and allow the event loop to ... the context of the main thread, or does each thread have its own AST queue? ...
    (comp.os.vms)