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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Starting an app from the ioc st.cmd |
From: | Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Siddons, David" <siddons at bnl.gov> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 20 Sep 2023 12:38:47 -0700 |
On 9/20/23 12:12, Mark Rivers via Tech-talk wrote:
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 <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).
epics-base install "system.dbd". Add this into your IOC :)
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 🙂 Pete.