Experimental Physics and Industrial Control System
|
At least with epics 7 there’s a “system.dbd” in base that you can include in your app’s dbd.
“softIoc” and “softIocPVA” do include it.
It contains “registrar(iocshSystemCommand)”, so same difference in the end.
From:
Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
Date: Wednesday, September 20, 2023 at 3:13 PM
To: Siddons, Peter <siddons at bnl.gov>, tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: [EXTERNAL] RE: Starting an app from the ioc st.cmd
Hi Pete,
I believe the “system” command is still available, but for security reasons it is disabled by default. This document:
https://epics.anl.gov/base/R3-16/2-docs/AppDevGuide.pdf
says on page 261:
Send command_string to the system command interpreter for execution. This command is present only if some application database definition
file contains registrar(iocshSystemCommand) and if the system provides a suitable command interpreter (vxWorks does not).
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Siddons, David via Tech-talk
Sent: Wednesday, September 20, 2023 2:05 PM
To: tech-talk at aps.anl.gov
Subject: Starting an app from the ioc st.cmd
How can I make the IOC boot script also start an external program? THere used to be an iocsh command "system", but it doesn't seem to exist anymore. ALternativerly, how can I export the PV header
info ($(P), $(R) ) so an external program can read them?
I have a few systems running the same IOC with different PV headers, and I want to allow the external code to pick up the current device's headers so I don't have to manually change them.
Probably a dumb question, but I can't see how to do it
🙂
|
- References:
- Starting an app from the ioc st.cmd Siddons, David via Tech-talk
- RE: Starting an app from the ioc st.cmd Mark Rivers via Tech-talk
- Navigate by Date:
- Prev:
RE: Starting an app from the ioc st.cmd Mark Rivers via Tech-talk
- Next:
Re: Starting an app from the ioc st.cmd Michael Davidsaver 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:
RE: Starting an app from the ioc st.cmd Mark Rivers via Tech-talk
- Next:
Re: Starting an app from the ioc st.cmd Michael Davidsaver 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
|
ANJ, 20 Sep 2023 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|