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/shgnome-terminal -e window1.sh &gnome-terminal -e window2.sh &exitHowever, 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/shecho window read -p press any key to continueI don't understand why they aren't even respecting the 'read' and waiting for input.
How to run two parallel gnome-terminal windows?
shell;shell script;gnome terminal
Run the script on its own. ./window1.shYou will get this output.windowpress any key to continue./window1.sh: 3: read: arg countThis is because read is a bash command, but not a sh command.