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