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
<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:
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
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|