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.
>