jefu@nmt.edu (Jeff Putnam) (06/30/91)
I'd like to find a way to title Terminal windows. I often need to have several open on different machines and would like to be able to select them by name rather than having to guess if "ttyp3" is machine 1 or machine 2 or..... Any suggestions? -- jefu@jupiter.nmt.edu -- Jeff Putnam, New Mexico Tech, Socorro, NM
cedman@golem.ps.uci.edu (Carl Edman) (07/01/91)
In article <1991Jun30.150242.17762@nmt.edu> jefu@nmt.edu (Jeff Putnam) writes: I'd like to find a way to title Terminal windows. I often need to have several open on different machines and would like to be able to select them by name rather than having to guess if "ttyp3" is machine 1 or machine 2 or..... Any suggestions? The nicest solution to this problem (in other words: the one I use) is this: First get Stuart. It is available form better FTP sites everywhere and everybody ought to have a copy (and send in his shareware fees if he likes it). Next create the directory /usr/hosts. Into this directory put hard links to /usr/ucb/rsh with the names of the hosts you use most of the time e.g. $ ln /usr/ucb/rsh /usr/hosts/golem.ps.uci.edu If you place /usr/hosts into your standard path you can rlogin to them by simply typing the name e.g. $ golem.ps.uci.edu but this is just a side benefit. Now change the Shellpath variable of Stuart to include /usr/hosts. $ dwrite Stuart ShellPaths /usr/local/bin:/bin:/usr/ucb:/usr/hosts:/LocalApps:/NextApps:/NextDeveloper/Demos:~/Apps Now you can start up a Stuart shell which automatically starts a remote shell your machine of choice by simply starting a new Stuart window with the name of your host as shell-name. This shell will have the name of the remote host as window title. Don't forget to disable "Shell reads .login file" for this particular shell. If you want to you can set this up to happen automatically when you start Stuart (which might be on login if you have Stuart in your dock and set up) by using a ~/.Stuartrc file. Mine looks like this: --------------------------- Shell=golem.ps.uci.edu SourceDotLogin=NO WinLocX=545 WinLocY=563 Lines=24 | WinLocX=76 WinLocY=833 --------------------------- This automatically starts up a remote shell on golem and a local shell on my NeXT. Carl Edman -- "We hold that what one man cannot morally do, a million men cannot morally do, and government, representing many millions of men, cannot do." -- Auberon Herbert Send mail to Carl Edman <cedman@golem.ps.uci.edu>