2018-01-27 17:57:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# (0) Get current ABS directory
|
|
|
|
ROOT=$(dirname `realpath $0`);
|
|
|
|
|
|
|
|
# (1) Check arguments
|
|
|
|
test $# -lt 1 && echo "ERR: Missing arguments (trigger_port)" && exit 1;
|
|
|
|
|
|
|
|
# (2) Wait for triggering by peer
|
2018-01-28 12:44:55 +00:00
|
|
|
echo "(.) set up [trigger:$1]";
|
2018-01-27 17:57:57 +00:00
|
|
|
nc -lp $1;
|
2018-01-28 12:44:55 +00:00
|
|
|
|
|
|
|
# (3) Log trigger received #
|
|
|
|
echo " > RECEIVED [trigger:$1]";
|