here's some code for a shell script that will change the title bar text in putty (or other terminal/ssh apps):
title_bar.sh
params=$*
echo "\033]0;$params\007"
then call the shell script with whatever you want in the title bar: ./title-bar.sh hello my friends "hello my friends" will appear in putty's title bar.