New terminal with multiple commands executed
===

I'm looking for a way to automate the start up of my development environment. I have three virtual machines that have to be started, then have to ssh to each of them and finally start open vpn on each of them.

So far, i've gotten them to start and managed to ssh on them.

    #!/bin/sh 
    virsh start virtual_1
    virsh start virtual_2
    virsh start virtual_3
    sleep 2m

    gnome-terminal --title "virtual_3: server" -x ssh root@192.168.1.132 &
    gnome-terminal --title "virtual_2: 11.100" -x ssh root@192.168.11.100 &
    gnome-terminal --title "virtual_1: 12.100" -x ssh root@192.168.12.100 &


What i have to figure out is how to execute an additional command in each of the terminals which starts openvpn. 

For simplicity lets just say i'm trying to do echo 1 in each ssh terminal instead of starting vpn.

I've found that multiple commands on terminal start can be run like:
   
    gnome-terminal -x bash -c "cmd1; cmd2"

So i changed (just for one terminal to keep it simple):

    gnome-terminal --title "virtual_3: server" -x ssh root@192.168.1.132 &

to

    gnome-terminal --title "virtual_3: server" -x bash -c "ssh root@192.168.1.132 ; echo 1" &

But 1 didn't print in the ssh terminal of virtual_3.
Then i thought, maybe the command is being executed to quickly, before the ssh terminal is ready. So i tried adding &&:

    gnome-terminal --title "virtual_3: server" -x bash -c "ssh root@192.168.1.132 &&; echo 1" &


But that gave no result either. If someone can help with an advice, i would be gratefull.

Tnx
