Skip to content

Commit

Permalink
Script now kills any pre-existing sauce connect tunnels before creati…
Browse files Browse the repository at this point in the history
…ng a new one
  • Loading branch information
Deniz Ozkaynak committed Jun 11, 2013
1 parent ac840fa commit f3c445f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions SauceConnectSetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ def downloadSauceConnect():

# Start the Sauce Connect tunnel
def startSauceConnect():
# First kill any pre-existing Sauce Connect tunnels
harakiri()
# Get the Sauce username from the user
SauceUsername = raw_input("Enter your Sauce Username: ")
SauceUsername = raw_input("\nEnter your Sauce Username: ")
# Get the Sauce API key from the user
SauceAPIKey = raw_input("Enter your Sauce API Key: ")

print "Spawning Sauce Connect Daemon..."
print "Proving P=NP..."
print "\nSpawning Sauce Connect Daemon..."
print "Proving P = NP..."
# Run the Java utility via a Daemon
subprocess.Popen('java -jar Sauce-Connect.jar ' + SauceUsername + " " + SauceAPIKey, creationflags=8, close_fds=True)
print "Sauce Connect Tunnel Daemon successfully created!"
Expand Down

0 comments on commit f3c445f

Please sign in to comment.