EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Running iocsh in the background
From: "Rarback, Harvey" <[email protected]>
To: "'Kevin M. Peterson'" <[email protected]>, "'tech-talk'" <[email protected]>
Cc: "Straumann, Till" <[email protected]>
Date: Wed, 29 Jan 2003 14:28:52 -0800
	Kevin,

> -----Original Message-----
> From: Kevin M. Peterson [mailto:[email protected]]
> Sent: Wednesday, January 29, 2003 2:16 PM
> To: tech-talk
> Subject: Running iocsh in the background
> 

> I have a Linux IOC and I am using the main function from
> R3.14.1's example App.  After the IOC is initialized iocsh
> left in "interactive mode" just like the App. Dev. Guide
> describes.
> 
> Unfortunately, "shutting down" the Linux IOC dangerously
> easy.  It isn't necessary to type the "exit" command; Closing
> the terminal window or pressing Ctrl-C do the job with even
> less effort.
> 
> Is it possible to start the Linux IOC and have it run in the
> background?  The Linux IOC seems to be missing the
> "non-interacting mode" that all of the vxWorks IOCs have.

When I had this requirement, my colleague Till Straumann suggested this workaround:

  - run the startup script in the background, something like

#!/bin/tcsh
# set up "virtual IOC" to run in the background
set soft_ioc=~rarback/soft_ioc
set arch=solaris-sparc-gnu
$soft_ioc/bin/$arch/example < $soft_ioc/exampleApp/src/st.cmd >& /dev/null &


  - include as the last line of the startup script

epicsThreadSleep 1000000

                                   --Harvey

Navigate by Date:
Prev: Running iocsh in the background Kevin M. Peterson
Next: Re: Running iocsh in the background Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Running iocsh in the background Dirk Zimoch
Next: RE: Running iocsh in the background Kevin Tsubota
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·