- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: showing server name in the top status bar
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 04:26 PM
08-14-2005 04:26 PM
I am using below mentioned command to show server name and current working directory:
PS1=`whoami`'@'`/usr/bin/hostname`': $PWD $ '; export PS1
I need a command to display the server name in the top heading status bar of xterm terminal window. I am using xterm of the Reflection X for connecting hpux boxes.
Thanks in advance,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 04:52 PM
08-14-2005 04:52 PM
Re: showing server name in the top status bar
$ HOSTNAME=$(/usr/bin/hostname)
$ PS1='
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 05:25 PM
08-14-2005 05:25 PM
Re: showing server name in the top status bar
We do the same thing. Display the title (in your case you want the server name) on the top heading status bar of an xterm window.
We defin the windows using hpterm.
hpterm -sb -sl 250 -name "$title"
where $title is the heading we want to display and we prompt and accept the heading form the user. In you case you can replace the $title with your server name.
IA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 05:26 PM
08-14-2005 05:26 PM
SolutionThe setting in PS1 will not help your xterm window, to have your desired name come on the title bar at xterm window use -T string allog with the xterm command in your reflection X configuration for the host.
Also have a look at the man pages of xterm to see what more options you can set. Below is the sample from man xterm
-T string
This option specifies the title for xterm's windows. It is
equivalent to -title.
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2005 05:36 PM
08-14-2005 05:36 PM
Re: showing server name in the top status bar
if you are using hpterm, try:
export header=.....
hpterm -name "$header"
hope this helps too!
regards
yogeeraj