commit 43e36066d85736200464e8998fac33c1095381b7 parent 183568620ad0e40010c25f03d2fec2d60d2f949f Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 3 Sep 2018 20:33:55 +0200 ii bots page: remove trailing space Diffstat:
M | tools.suckless.org/ii/bots.md | | | 12 | ++++++------ |
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools.suckless.org/ii/bots.md b/tools.suckless.org/ii/bots.md @@ -25,13 +25,13 @@ Automatic reconnects If you want some kind of automatic reconnects in ii you can make a something like this in a shell script: - while true; do + while true; do ii -s irc.oftc.net -n iifoo -f "John Doe" & - iipid="$!" - sleep 5 - printf "/j %s\n" "#ii" > ~/irc/irc.oftc.net/in + iipid="$!" + sleep 5 + printf "/j %s\n" "#ii" > ~/irc/irc.oftc.net/in wait "$iipid" - done + done bots for irc it (ii) ==================== @@ -92,7 +92,7 @@ The appropriate Nagios configuration looks like this: # 'notify-by-irc' command definition define command{ command_name notify-by-irc - command_line /usr/bin/printf "%b" "$TIME$ $NOTIFICATIONTYPE$ $HOSTNAME$/$SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$\n" | /home/nagios/bin/nagios_post.pl + command_line /usr/bin/printf "%b" "$TIME$ $NOTIFICATIONTYPE$ $HOSTNAME$/$SERVICEDESC$ $SERVICESTATE$ $SERVICEOUTPUT$\n" | /home/nagios/bin/nagios_post.pl } # 'host-notify-by-irc' command-notification