#!/bin/bash STATUS=$(forticlient vpn status|grep Status:|cut -d: -f2|tr '[:upper:]' '[:lower:]'|xargs) echo "{ \"status\": \"$STATUS\", \"alt\": \"$STATUS\", \"tooltip\": \"$STATUS\" }"