Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created April 18, 2012 08:24
Show Gist options
  • Select an option

  • Save AeroNotix/2412045 to your computer and use it in GitHub Desktop.

Select an option

Save AeroNotix/2412045 to your computer and use it in GitHub Desktop.
import urllib2
import subprocess
for x in range(1000):
try:
urllib2.urlopen("http://localhost:8080/")
subprocess.Popen(["python", r"C:\Documents and Settings\francea\Desktop\serverhammer.py"])
except Exception as e:
print str(e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment