Platinum Partner

Python - SimplePing

// Verifica se un Server e' su o giu'


import pycurl

def nullFunc(args):
	pass

try:

	curl = pycurl.Curl()
	curl.setopt(pycurl.WRITEFUNCTION, nullFunc)
	curl.setopt(pycurl.URL, 'http://www.google.it')
	curl.perform()

	print "Server SU"

except Exception, error:

	print "Server GIU'"
{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}