1 2 3 4
#!/bin/sh SSHGUARD_OPTS=$1 shift LANG=C /usr/bin/journalctl -afb -p info -n1 -o cat "$@" | /usr/bin/sshguard -l- $SSHGUARD_OPTS