I'm new to scripting, but somewhat familiar with Linux. I am actually using this on a Fedora16 build, with Gnome3 and gnome-terminal... fyi.
I flip through all sorts of ssh terminals all day long and I thought it would be nice to create a ssh script called lambda that contains information that is sent to a terminal_wrapper script that accepts all sorts of variables and creates a new gnome-terminal based on those given variables. The information I would like would be to rename the title, change bg and fg colors, and start an ssh in a new gnome-terminal window.
I feel like I'm close to getting the ssh to work, but I'm missing something. Here is what I've got for my ssh script for lambda:
terminal_wrapper user lambda.company.com
And here is my terminal_wrapper:
gnome-terminal --title=$2 -e ssh $1 $2
It opens a new window for me, renames it to the lambda.company.com, and then sits there and closes after a second.
Any help? Thanks.