Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20192020  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  <20192020 
<== Date ==> <== Thread ==>

Subject: Re: How is 'exit()' different for the IOC shell?
From: Mark Rivers via Tech-talk <tech-talk@aps.anl.gov>
To: "Kasemir, Kay" <kasemirk@ornl.gov>
Cc: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 26 Jun 2019 20:51:30 +0000
I ran into this exact problem yesterday.


Sent from my iPhone

> On Jun 26, 2019, at 4:49 PM, Kasemir, Kay via Tech-talk <tech-talk@aps.anl.gov> 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  <20192020 
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  <20192020 
ANJ, 26 Jun 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·