I ran into this exact problem yesterday.
Sent from my iPhone
> On Jun 26, 2019, at 4:49 PM, Kasemir, Kay via Tech-talk <[email protected]> wrote:
>
> 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
>
- References:
- How is 'exit()' different for the IOC shell? Kasemir, Kay via Tech-talk
- Navigate by Date:
- Prev:
How is 'exit()' different for the IOC shell? Kasemir, Kay via Tech-talk
- Next:
Re: How is 'exit()' different for the IOC shell? Zelazny, Michael Stanley via Tech-talk
- 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
- Navigate by Thread:
- Prev:
How is 'exit()' different for the IOC shell? Kasemir, Kay via Tech-talk
- Next:
Re: How is 'exit()' different for the IOC shell? Zelazny, Michael Stanley via Tech-talk
- 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
|