The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

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 01:52 PM
Change putty title window? akbar UNIX for Advanced & Expert Users 12 01-28-2008 01:38 PM
window title..? tintedwindow UNIX for Dummies Questions & Answers 1 08-24-2005 02:06 AM
SSH with Putty AJA SUN Solaris 3 03-01-2004 03:45 PM
window 2000 professional not pinging my window 98 system. kayode Windows & DOS: Issues & Discussions 10 11-13-2003 03:12 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-18-2008
lwif lwif is offline
Registered User
  
 

Join Date: Jan 2008
Location: Ohio
Posts: 11
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?
  #2 (permalink)  
Old 01-21-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
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 (permalink)  
Old 01-28-2008
lwif lwif is offline
Registered User
  
 

Join Date: Jan 2008
Location: Ohio
Posts: 11
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?
  #4 (permalink)  
Old 01-28-2008
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
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 05:22 PM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:37 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0