#!/bin/bash if [ -p /tmp/CNCCaptureCtl ] then echo exit > /tmp/CNCCaptureCtl sleep 1 exit 0 else exit 1 fi