bash-com/trigger

11 lines
218 B
Bash
Executable File

#!/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
nc -lp $1;