Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: using jabber for RPC or inter-server-communication

by Anonymous Monk
on Jul 28, 2003 at 23:44 UTC ( #278664=note: print w/replies, xml ) Need Help??


in reply to using jabber for RPC or inter-server-communication

You could try Net::Ping, if you know the host & connection...
  • Comment on Re: using jabber for RPC or inter-server-communication

Replies are listed 'Best First'.
Re: using jabber for RPC or inter-server-communication
by skx (Parson) on Jul 29, 2003 at 09:39 UTC

     I guess the problem here is that if the interface is down the ping will cause it to come up - forcing the ping to be always true.

     If the pppd has a startup delay and you force ping to only send one or two packets, though, then this approach might work.

     My solution would be to have the 'ifup' script touch a file in /tmp, and the 'ifdown' script remove it.

     Then, barring crashes/weirdness testing the connection status is as simple as testing for the existence of the file in /tmp.

    Steve
    ---
    steve.org.uk

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://278664]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (11)
As of 2020-12-02 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (44 votes). Check out past polls.

    Notices?