Skip to content
Snippets Groups Projects
Commit f7aa75a5 authored by Pete R Jemian's avatar Pete R Jemian Committed by GitHub
Browse files

use `dirname $0` - can run even when pwd is different

---: # If no startup dir is specified, assume this script resides in the IOC's startup directory

+++: # If no startup dir is specified, use this script's directory
parent b80ac2ef
No related branches found
No related tags found
No related merge requests found
......@@ -45,14 +45,14 @@ SELECTION=$1
if [ -z "$IOC_STARTUP_DIR" ]
then
# If no startup dir is specified, assume this script resides in the IOC's startup directory
IOC_STARTUP_DIR="$(${DIRNAME} ${SNAME})"
# If no startup dir is specified, use this script's directory
IOC_STARTUP_DIR=`dirname $0`
fi
#!${ECHO} ${IOC_STARTUP_DIR}
#####################################################################
IOC_CMD="../../bin/${EPICS_HOST_ARCH}/${IOC_BINARY} st.cmd"
IOC_CMD="${IOC_STARTUP_DIR}/../../bin/${EPICS_HOST_ARCH}/${IOC_BINARY} ${IOC_STARTUP_DIR}/st.cmd"
screenpid() {
if [ -z ${SCREEN_PID} ] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment