My question is similar to this question.
I would like to open multiple terminal windows and execute commands in them by using a shell script. Since I want to monitor data, the terminals need to stay open.
My problem is as follows; I want to be able to execute commands in terminals that are already open and, more importantly, after I already executed commands in another terminal. This is what I have until now:
#!/bin/sh
terminator -T "terminal1" -e "[COMMAND]; [COMMAND]; $SHELL" &&
terminator -T "terminal2" -e "[COMMAND]; [COMMAND]; $SHELL"
#How to use terminal1 again here?
I cannot figure out how to do the last step here.
I am using Terminator, but any other terminal would also be fine.