diff --git a/iocBoot/iocxxx/softioc/xxx.sh b/iocBoot/iocxxx/softioc/xxx.sh
index 18b9a95e7beea5d57c515060b46399c75d8a110b..2ffa63ff2a37a1c54a864f12ff98c155dbe504d1 100755
--- a/iocBoot/iocxxx/softioc/xxx.sh
+++ b/iocBoot/iocxxx/softioc/xxx.sh
@@ -107,12 +107,12 @@ checkpid() {
                         for s_pid in ${S_PIDS} ; do
                             #!${ECHO} ${s_pid}
 
-                            if [ "${s_pid}" = "${P_PID}" ] ; then
+                            if [[ ${s_pid} -eq ${P_PID} ]] ; then
                                 SCREEN_PID=${s_pid}
                                 break
                             fi
                     
-                            if [ "${s_pid}" = "${GP_PID}" ] ; then
+                            if [[ ${s_pid} -eq ${GP_PID} ]] ; then
                                 SCREEN_PID=${s_pid}
                                 break
                             fi