Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  19 Nov 2025, Stefan Mathis, Forum, Control external process from inside MIDAS 
    Reply  19 Nov 2025, Nick Hastings, Forum, Control external process from inside MIDAS 
       Reply  20 Nov 2025, Stefan Mathis, Forum, Control external process from inside MIDAS 
          Reply  20 Nov 2025, Nick Hastings, Forum, Control external process from inside MIDAS 
             Reply  20 Nov 2025, Stefan Mathis, Forum, Control external process from inside MIDAS 
                Reply  24 Nov 2025, Stefan Ritt, Forum, Control external process from inside MIDAS 
                   Reply  27 Nov 2025, Konstantin Olchanski, Forum, Control external process from inside MIDAS 
Message ID: 3120     Entry time: 19 Nov 2025     Reply to this: 3121
Author: Stefan Mathis 
Topic: Forum 
Subject: Control external process from inside MIDAS 
Dear all,

I want to control (start / stop / monitor its stdout and stderr) an external process (systemd / EPICS IOC shell script) from within MIDAS.

In order to make this as convenient as possible for the user, I want the process to behave just like any other MIDAS client:
- I can start it from the ODB as a program
- The process gets regularly polled from MIDAS to see whether it is still running
- I can stop the process from the ODB like any other program
- Optional, but highly appreciated: Its stdout and stderr should be a MIDAS message.

Did anyone already solve a similar problem?

Best regards
Stefan
ELOG V3.1.4-2e1708b5