Ruby Script to ping a URL every 30sec
<p>Is there a way to ping a URL every 30 seconds using Ruby script?</p>

<pre><code>require 'net/http'

http = Net::HTTP.new('www.google.com',80)
response = http.request_get('/')
p response.status
</code></pre>