sets the remote server's name


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sets the remote server's name
# 1  
Old 09-05-2012
set the remote server's name

Hi all,
does any one have any idea on how to sets the remote server's name on ubuntu terminal tabs,
without making any changes to the remote server?

for example if i'm working on ssh root@test1
i would like it to be shown on the tittle's tab and if i connect on another it would do the same even if i open multiple tabs for multiple servers.

Does any one have any workaround?

Last edited by charli1; 09-05-2012 at 11:18 AM..
# 2  
Old 09-05-2012
Is ubuntu terminal even capable of this? Does it obey the usual xterm-style escape sequences for setting a terminal title?
# 3  
Old 09-05-2012
Quote:
Originally Posted by Corona688
Is ubuntu terminal even capable of this? Does it obey the usual xterm-style escape sequences for setting a terminal title?
Yes it does,
simply cant figure it out to change the tab tittle when i connect to remote servers.
# 4  
Old 09-05-2012
First google hit for xterm set title.

Of course, it may be setting the tab title already (every time it prompts) which you'd need to override by changing the PS1 variable. Otherwise, you'd never see changes because every time it goes back to the prompt it'd change it straight back.
# 5  
Old 09-05-2012
Quote:
Originally Posted by Corona688
First google hit for xterm set title.

Of course, it may be setting the tab title already (every time it prompts) which you'd need to override by changing the PS1 variable. Otherwise, you'd never see changes because every time it goes back to the prompt it'd change it straight back.
I already have this link buddy,thanks any way for trying.
# 6  
Old 09-05-2012
I also told you why it may not be working for you.

Quote:
Of course, it may be setting the tab title already (every time it prompts) which you'd need to override by changing the PS1 variable. Otherwise, you'd never see changes because every time it goes back to the prompt it'd change it straight back.
So what have you tried? In what way does it not work?
# 7  
Old 09-05-2012
Hello,
I do this with my .profile file. I'm a BASH user so this is what I do.
I set this in my prompt.
Code:
export PS1="\[\e]2;\h:\w \a\[\e[0;31m\]\u@\e[0;32m\h\e[0;34m\]>\[\e[0m\] "

I think the bold part is the title bar part. This works on MAC, RHEL and Solaris. It also works with both xterm and terminal.

I hope this helps
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

2. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

3. Shell Programming and Scripting

Do I require remote login access to a windows server to transfer files from a UNIX server

Hi All I need to transfer a file from a UNIX server to a windows server. I saw that it is possible to do this using scp command by looking at the forum listed below: ... (2 Replies)
Discussion started by: vx04
2 Replies

4. Shell Programming and Scripting

How to Append the output of a script running in remote server to a file in local server?

Hi guys, So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies

5. Solaris

Script to get files from remote server to local server through sftp without prompting for password

Hi, I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script. Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies

6. Programming

SFTP from one remote server to another remote server from desktop

Hi, I have 1. lappy 2. server A 3. server B Now, what i need is to run a command from lappy that will sftp a file from server A to server B. Please guide me to achieve this. -akash (1 Reply)
Discussion started by: akash.mahakode
1 Replies

7. Shell Programming and Scripting

preserving the timestamp of a file when copied from remote server to local server using ftp

Hi, I need to copy few files from remote server to local server. I write a shell script to connect to the remote server using ftp and go to that path. Now i need to copy those files in the remote directory to my local server with the timestamp of all those files shouldnt be changed. ... (5 Replies)
Discussion started by: arunkumarmc
5 Replies

8. Virtualization and Cloud Computing

Clouds (Partially Order Sets) - Streams (Linearly Ordered Sets) - Part 2

timbass Sat, 28 Jul 2007 10:07:53 +0000 Originally posted in Yahoo! CEP-Interest Here is my follow-up note on posets (partially ordered sets) and tosets (totally or linearly ordered sets) as background set theory for event processing, and in particular CEP and ESP. In my last note, we... (0 Replies)
Discussion started by: Linux Bot
0 Replies

9. Shell Programming and Scripting

Transfer file from local unix server to remote server

want to remove this thread. thanks (2 Replies)
Discussion started by: indira
2 Replies
Login or Register to Ask a Question