mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-19 04:09:45 +00:00
Minor changes
This commit is contained in:
parent
e0fdde7cd0
commit
33c5443794
4 changed files with 37 additions and 6 deletions
2
Makefile
2
Makefile
|
@ -20,12 +20,12 @@ logger: src/logger.c src/utils.c config.mk
|
|||
$(CC) $(filter-out config.mk,$^) -o $@ $(MACROS)
|
||||
|
||||
publish: publisher logger
|
||||
[ -f pid ] && { kill $(shell cat pid); rm pid; }
|
||||
for client in $$(basename -a /home/loic/registers/*); \
|
||||
do \
|
||||
./logger $(LOGGERS_DIR) $$client $(LOG_INTERVAL) &> logger_$${client}.log & echo $$! >> pid; \
|
||||
done
|
||||
./publisher $(LOGGERS_DIR) $(LOG_INTERVAL) $(SUBSCRIBER_ADDR) $(ZMQ_PORT) $(KEY)
|
||||
[ -f pid ] && { kill -INT $(shell cat pid); rm pid; }
|
||||
|
||||
subscribe: subscriber
|
||||
./subscriber $(ZMQ_PORT) $(SUBSCRIBER_DIR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue