Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 9 lines (6 sloc) 208 Bytes
#!/usr/bin/env python
from zmqfan import zmqsub
import sys
import pidvarmap
ct = zmqsub.ConnectPub(sys.argv[1])
ct.send({'cmd': 'set', 'k' : sys.argv[2], 'v' : pidvarmap.typemap[sys.argv[2]](sys.argv[3])})