![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change title of aixterm window online | Soham | UNIX for Advanced & Expert Users | 1 | 02-01-2008 10:52 AM |
| Change putty title window? | akbar | UNIX for Advanced & Expert Users | 12 | 01-28-2008 10:38 AM |
| window title..? | tintedwindow | UNIX for Dummies Questions & Answers | 1 | 08-23-2005 11:06 PM |
| SSH with Putty | AJA | SUN Solaris | 3 | 03-01-2004 12:45 PM |
| window 2000 professional not pinging my window 98 system. | kayode | Windows & DOS: Issues & Discussions | 10 | 11-13-2003 12:12 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have implemented the solution from mschwage located in post Change putty title window? ie
wt () { echo -n "^[]2;${@}^G" } This method is awesome!!!! The reason I am sending you this message is to get your assistance with another issue I am runing into in respect to the window title. This issue is - after putty'ng to system (A) the title changes appropriately... while logged into system (A) I run "ssh user@B" via the command line. This now changes the title to system (B). So far everything works as expected, until I exit system (B). The result is the the window title still reflects system system (B). How do I get the window title to change back to system (A) on exiting system (B)? I'd like this to be automated. Thanks!!!! Change putty title window? |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
You'll have to create an alias called 'ssh' to a wrapper script for ssh so that you can execute your bit of code after ssh exits.
|
|
#3
|
|||
|
|||
|
Thanks!
Smiling Dragon, thanks for this information. How would I create a wrapper script... is this just a regular script my ssh program calls?
|
|
#4
|
||||
|
||||
|
Yep, just a regular script, something like the following:
Code:
#!/bin/sh
/path/to/ssh $*
echo -n "^[]2;${@}^G"
Last edited by Smiling Dragon; 01-28-2008 at 02:22 PM. |
||||
| Google The UNIX and Linux Forums |