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
0c08c2f0d8
commit
c79a02c57b
4 changed files with 31 additions and 31 deletions
5
Makefile
5
Makefile
|
@ -22,10 +22,9 @@ logger: src/logger.c src/utils.c config.mk
|
|||
publish: publisher logger
|
||||
for client in $$(basename -a /sys/kernel/ina260/*); \
|
||||
do \
|
||||
./logger $(LOGGERS_DIR) $$client $(LOG_INTERVAL) &> logger_$${client}.log & echo $$! >> pid; \
|
||||
./logger $(LOGGERS_DIR) $$client $(LOG_INTERVAL) $(SUBSCRIBER_ADDR) $(ZMQ_PORT) $(KEY) ; \
|
||||
done
|
||||
./publisher $(LOGGERS_DIR) $(LOG_INTERVAL) $(SUBSCRIBER_ADDR) $(ZMQ_PORT) $(KEY)
|
||||
[ -f pid ] && { kill -INT $(shell cat pid); rm pid; }
|
||||
# [ -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