#!/bin/sh if fuser -s iocK1.log; then echo Another copy of Epics process running already\! exit 1 fi ./k1mclepics k1mclepicsK1.cmd > iocK1.log 2>&1 & echo k1mclepics K1 IOC Server started