Skip navigation.

Archives

CruiseControl 2.7.2 Released

CruiseControl 2.7.2 is available for download.

Lots of bug fixes, lots of changes to the Dashboard.

New plugins:

See detailed release notes here.

Python - Host/Device Ping Utility for Windows

This script uses your system's ping utility to send an ICMP ECHO_REQUEST to a list of hosts or devices. It uses a separate thread to ping each host/device. This can be useful for measuring network latency and verifying hosts are alive.

Check out more info here: http://www.goldb.org/python_pinger.html


#!/usr/bin/env python import re from subprocess import
Popen, PIPE from threading import Thread class Pinger(object): def __init__(self,
hosts): for host in hosts: pa = PingAgent(host) pa.start() class PingAgent(Thread):
def __init__(self, host): Thread.__init__(self) self.host = host def run(self): p
= Popen('ping -n 1 ' + self.host, stdout=PIPE) m = re.search('Average = (.*)ms', p.stdout.read())
if m: print 'Round Trip Time: %s ms -' % m.group(1), self.host else: print 'Error:
Invalid Response -', self.host if __name__ == '__main__': hosts = [ 'www.pylot.org',
'www.goldb.org', 'www.google.com', 'www.this_one_wont_work.com' ] Pinger(hosts) 

Output:

benerator 0.5.1 released

release 0.5.1 fixes several major bugs and adds domain support for the United States in generating US addresses and company names. From now on, benerator will be available on the public maven repository (groupId 'org.databene', artifactId 'databene-benerator'. Bug Tracking now is available via sourceforge.net

Practical Testing: 17 - A whole new approach

The comments to my last practical testing entry got me thinking. The commenter who had located the bug in part 15, which was fixed in part 16, suggested a new approach to the problem and I've been investigating it. The...
Posted by Len at 06:54 PM | » login or register to post comments | feed | read more