mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-07 04:16:26 +02:00
Minor changes
This commit is contained in:
parent
087253ca04
commit
8f6bf2c440
2 changed files with 7 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -6,4 +6,5 @@
|
||||||
# Caches
|
# Caches
|
||||||
/logs
|
/logs
|
||||||
/data
|
/data
|
||||||
/pid
|
/pid
|
||||||
|
/logger_*.log
|
7
Makefile
7
Makefile
|
@ -15,8 +15,11 @@ logger: src/logger.c src/utils.c
|
||||||
$(CC) $^ -o $@
|
$(CC) $^ -o $@
|
||||||
|
|
||||||
publish: publisher logger
|
publish: publisher logger
|
||||||
rm -f pid
|
[ -f pid ] && { kill $(shell cat pid); rm pid; }
|
||||||
./logger $(LOGGERS_DIR) 587 $(LOG_INTERVAL) &> $(LOGGERS_DIR)/587.log & echo $$! >> 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)
|
./publisher $(LOGGERS_DIR) $(LOG_INTERVAL) $(SUBSCRIBER_ADDR) $(ZMQ_PORT) $(KEY)
|
||||||
|
|
||||||
subscribe: subscriber
|
subscribe: subscriber
|
||||||
|
|
Loading…
Add table
Reference in a new issue