I basically need to automate running 2 commands in separate terminals.
while :
do
timeout 10 gnome-terminal --geometry=95x56 -e "COMMAND1" &&
timeout 7 gnome-terminal -e "COMMAND2" &&
sleep 30
done
Expected behavior:
- A terminal opens, running COMMAND1 for 10 seconds, then closes
- A second terminal opens, runs COMMAND2 for 7 seconds, then closes
- 30 seconds pass
- The cycle repeats
Actual behavior:
- Both COMMAND1 and COMMAND2 start at the same time
- COMMAND1 is displayed in the terminal, but does not actually run.
What's going on here?