Delete nudge.py

This commit is contained in:
LetterJay
2017-10-30 01:48:48 -05:00
committed by GitHub
parent fba46cd0e5
commit 969f92fb58
-22
View File
@@ -1,22 +0,0 @@
#!/usr/bin/env python3
import sys
import pickle
import socket
def pack():
data = sys.argv[1]
nudge(str.encode(data))
def nudge(data):
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
with open('config/server_to_tool_bridge_port.txt', 'r') as myfile:
portstr=myfile.read().replace('\n', '').strip()
s.connect(("localhost", int(portstr)))
s.send(data)
s.close()
if __name__ == "__main__" and len(sys.argv) > 1:
pack()