Skip to content

Instantly share code, notes, and snippets.

@ox1111
Last active March 15, 2019 08:10
Show Gist options
  • Save ox1111/10de15d77f6fb2e322f688b2957db3e2 to your computer and use it in GitHub Desktop.
Save ox1111/10de15d77f6fb2e322f688b2957db3e2 to your computer and use it in GitHub Desktop.
import redis
def send_messageq():
r = redis.StrictRedis(host='192.168.1.48', port=6379, db=0)
p = r.pubsub()
print("Starting main scripts...")
r.publish('startScripts', 'START')
print("Done")
if __name__ == '__main__':
send_messageq()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment