#!/bin/bash set -e if [ $# -lt 3 ] then echo "usage: triggerWatchdog_REST [min_int]" exit 1 fi if [ -n "$4" ] then min_int="$4" fi curl -S -s -d "$2Hostname/$3free_form/$2$min_int" $1/AlarmInterface/RemoteWatchdog -o curl.out if ! grep "RemoteWatchdog id" curl.out >/dev/null; then cat curl.out fi