From: Michael Friedrich Date: Fri, 9 Aug 2013 12:59:09 +0000 (+0200) Subject: contrib: Add stderr print to flap.sh X-Git-Tag: v0.0.3~710 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ffc3e85ba5a99628686450367507c07e5e23033a;p=icinga2 contrib: Add stderr print to flap.sh --- diff --git a/contrib/flap.sh b/contrib/flap.sh index 01fc9d5c6..e28fff9da 100755 --- a/contrib/flap.sh +++ b/contrib/flap.sh @@ -1,5 +1,8 @@ #!/bin/sh +echoerr() { echo "$@" 1>&2; } + foo=$(shuf -i 0-3 -n 1) echo "flapme: $foo" +echoerr "stderr test" exit $foo