#!/bin/bash export HOME=/root RETURNVAL="$(nc -N -U /srv/mail-socket/mail.sock)" if [ "$RETURNVAL" = "ok" ]; then exit 0 else exit 1 fi