The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
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

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-18-2008
Registered User
 

Join Date: Jan 2008
Posts: 4
Post putty title window?

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?
Reply With Quote
Forum Sponsor
  #2  
Old 01-21-2008
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 734
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.
Reply With Quote
  #3  
Old 01-28-2008
Registered User
 

Join Date: Jan 2008
Posts: 4
Thanks!

Quote:
Originally Posted by Smiling Dragon View Post
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.
Smiling Dragon, thanks for this information. How would I create a wrapper script... is this just a regular script my ssh program calls?
Reply With Quote
  #4  
Old 01-28-2008
Smiling Dragon's Avatar
Disorganised User
 
Join Date: Nov 2007
Location: New Zealand
Posts: 734
Yep, just a regular script, something like the following:
Code:
#!/bin/sh
/path/to/ssh $*
echo -n "^[]2;${@}^G"
Edit: It calls ssh, rather than the other way round - it 'wraps' around ssh, thus the name.

Last edited by Smiling Dragon; 01-28-2008 at 02:22 PM.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:38 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0