runusb-2/runusbctl.py

14 lines
252 B
Python
Raw Permalink Normal View History

2023-05-18 23:55:17 +01:00
import zmq
from pathlib import Path
import sys
import time
context = zmq.Context()
socket = context.socket(zmq.PUB)
socket.connect("ipc://" + str(Path.cwd() / "runusb.sock"))
# time.sleep(3600)
socket.send_multipart([sys.argv[1].encode(), b"foo"])