What I would like to achieve is a bash script or even better a single bash line that can run two terminal based apps on parallel. I am aware of the commands
; but in my case they are not applicable because both my commands keep the terminal open and need each other to run properly.
It might seem like an edge case but my specific use case is quite simple and I think it might be help full in many similar cases.
What I am trying to do is to parse a message from a usb port that uses swo protocol ,so my quite obnoxious workaround is :
- Open terminal one , run
openocd -f connect_swo.cfg(terminal1 hangs )
- Open terminal two , run
python3 swo_parser.py(terminal2 hangs and terminal1 prints values)
- Then terminating both commands with two separate
Expected solution would be something like:
- Run magic command that open two connected sessions and both my commands on the seperate sessions
- One single
ctrl +cterminates both commands
PS:Comment me if I should move the question to superuser