Send initial command to new terminal window

Whitehill

Registered
I have created a "window group" in Terminal and it works fine. What I really want to do is execute one command after each new window opens, that being

ssh ${ssh_host}​

where the value of ssh_host varies for each window. That is, each window automatically logs into a host somewhere. Does anyone know of a way to approach this?
 
Back
Top