[CentOS] How to open several tabs in a gnome-terminal window and run a command in each tab?

Fri Aug 5 10:34:17 UTC 2011
John Doe <jdmls at yahoo.com>

From: Pete O\'Connell <pedrooconnell at gmail.com>

> HI, but using watch you don't get the cursor back. 

Because when the command exists, the gnome-terminal session exists...
Best would be the following if you find out how to add your commands to the bash call...
  gnome-terminal --tab -e "bash -i" --tab -e "bash -i"
Maybe someone will have an idea...

>> Try with a full script with loops
> Sounds good how do I do that?

Instead of the loops, you could use this script.sh:
  #!/bin/bash
  ls $*
  bash -i

  gnome-terminal --tab -e "/path/to/script.sh AAA" --tab -e "/path/to/script.sh BBB"

JD