Shell_command - what happens with the process

I can run shell commands directly from Home Assistant Core on a Mac. How can I monitor or at least stop it?

The idea is that I want to run a process for a certain time and then quit it.

You cannot run long-running processes from a shell commands. It will timeout and be killed within 10sec (iirc).
Your plan would be to launch the process in the background with the shell command, then have a process-specific way to monitor it with other sensors.

1 Like

That makes totally sense!

10 seconds are not enough for me. So what is the way to do this without opening dozens of terminal windows?