Skip to content

Commit

Permalink
Add timetag-cat
Browse files Browse the repository at this point in the history
  • Loading branch information
bgamari committed Oct 24, 2014
1 parent 9a560c2 commit cf95381
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ CC=$(CXX)

PROGS=timetag_acquire photon_generator timetag_dump \
timetag_cut timetag_extract timetag_bin \
timetag-cli
timetag-cli timetag-cat

all : ${PROGS}

Expand Down
14 changes: 14 additions & 0 deletions timetag-cat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/python

import sys
import zmq

ctx = zmq.Context().instance()
data_sock = ctx.socket(zmq.SUB)
data_sock.setsockopt(zmq.SUBSCRIBE, '')
data_sock.connect('ipc:///tmp/timetag-data')

while True:
d = data_sock.recv()
sys.stdout.write(d)
sys.stdout.flush()

0 comments on commit cf95381

Please sign in to comment.