I'm looking to run two independent parallel gnome-terminal windows with some parameters, from one shell script.
So far I've got this:
#!/bin/sh gnome-terminal -e window1.sh & gnome-terminal -e window2.sh & exit
However, upon running this, the screens flash up and disappear. I was expecting both to appear, wait for key input, then continue working as normal terminal windows would, i.e., I should be able to continue typing commands into them both.
Here's the code for window1.sh + window2.sh:
#!/bin/sh echo window read -p "press any key to continue"
I don't understand why they aren't even respecting the 'read' and waiting for input.