From a088aa0ac36291f1695feff692e0cb2bf28c000b Mon Sep 17 00:00:00 2001 From: kpetersn Date: Mon, 28 Sep 2020 16:50:04 -0500 Subject: [PATCH] Set RUNNING_IN=screen when the IOC is running in screen so the script can connect to the IOC's shell when the console argument is used. --- iocBoot/iocxxx/softioc/xxx.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iocBoot/iocxxx/softioc/xxx.sh b/iocBoot/iocxxx/softioc/xxx.sh index 1256da6..b28aea7 100755 --- a/iocBoot/iocxxx/softioc/xxx.sh +++ b/iocBoot/iocxxx/softioc/xxx.sh @@ -223,11 +223,13 @@ checkpid() { if [ ${s_pid} -eq ${P_PID} ] ; then SCREEN_PID=${s_pid} + RUNNING_IN=screen break fi if [ ${s_pid} -eq ${GP_PID} ] ; then SCREEN_PID=${s_pid} + RUNNING_IN=screen break fi