Skip to content

Instantly share code, notes, and snippets.

@pumacamargo
Created February 4, 2014 19:46
Show Gist options
  • Save pumacamargo/8810913 to your computer and use it in GitHub Desktop.
Save pumacamargo/8810913 to your computer and use it in GitHub Desktop.
import socket
mayaSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
mayaSocket.connect(('localhost', 6000))
mayaSocket.send("print what")
mayaSocket.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment