Skip to content

Instantly share code, notes, and snippets.

@yono
Created May 7, 2010 01:51
Show Gist options
  • Save yono/392931 to your computer and use it in GitHub Desktop.
Save yono/392931 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import telnetlib
def reload_firefox():
HOST = 'localhost'
PORT = '4242'
telnet = telnetlib.Telnet(HOST, PORT)
telnet.write('connect.location.reload(true)')
telnet.close()
if __name__ == '__main__':
reload_firefox()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment