1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: How is 'exit()' different for the IOC shell? |
From: | "Zelazny, Michael Stanley via Tech-talk" <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Wed, 26 Jun 2019 21:05:27 +0000 |
IOCAdmin EPICS Module has a PV called $(IOC):SYSRESET that you could dbpf after your sleep. From: [email protected] <[email protected]> on behalf of Kasemir, Kay via Tech-talk <[email protected]>
Sent: Wednesday, June 26, 2019 13:48 To: techtalk Subject: How is 'exit()' different for the IOC shell? Hi:
To test a client for an IOC that keeps restarting, I tried this: while true do softIoc brief.cmd done with brief.cmd like this: dbLoadDatabase("/path/to/softIoc.dbd") dbLoadRecords("demo.db") iocInit() epicsThreadSleep(10) date() exit() The IOC starts, after 10 seconds the date is printed, but instead of then exiting, I get the "epics>" prompt. Same when I don't include "exit()". Why does exit() in the startup script not exit? If I type "exit()" at the prompt, the IOC does quit, the while loop restarts it, and I'm back with date & "epics>", again ignoring the exit(). Other idea how to periodically kill/restart an IOC for tests? Thanks, -Kay |