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