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: How is 'exit()' different for the IOC shell?
From: "Kasemir, Kay via Tech-talk" <tech-talk@aps.anl.gov>
To: techtalk <tech-talk@aps.anl.gov>
Date: Wed, 26 Jun 2019 20:48:57 +0000
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


Replies:
Re: How is 'exit()' different for the IOC shell? Mark Rivers via Tech-talk
Re: How is 'exit()' different for the IOC shell? Zelazny, Michael Stanley via Tech-talk
Re: How is 'exit()' different for the IOC shell? Johnson, Andrew N. via Tech-talk

Navigate by Date:
Prev: Running EPICS R3.14.12.7 in RTEMS 4.11 emilio.perez-juarez--- via Tech-talk
Next: Re: How is 'exit()' different for the IOC shell? Mark Rivers 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: Re: Running EPICS R3.14.12.7 in RTEMS 4.11 emilio.perez-juarez--- via Tech-talk
Next: Re: How is 'exit()' different for the IOC shell? Mark Rivers 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 ·