HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Change Login Prompt.
Operating System - HP-UX
1835336
Members
2873
Online
110078
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
09-09-2002 09:08 AM
09-09-2002 09:08 AM
Change Login Prompt.
Hi Masters
Does any body knows how to change login prompt. (login: )
If DataBase is UP => DBS=UP
Down => DBS=DN
I want to put database status alongwith login: prompt.
eg.
DataBase $DBS login:
Thanks in adv.
Does any body knows how to change login prompt. (login: )
If DataBase is UP => DBS=UP
Down => DBS=DN
I want to put database status alongwith login: prompt.
eg.
DataBase $DBS login:
Thanks in adv.
Take It Easy, Be Happy !
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 09:11 AM
09-09-2002 09:11 AM
Re: Change Login Prompt.
You could add that information to /etc/issue and be sure that within the file /etc/inetd.conf you have a line that looks like the following-
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue
HTH
-- Rod Hills
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /etc/issue
HTH
-- Rod Hills
There be dragons...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 09:17 AM
09-09-2002 09:17 AM
Re: Change Login Prompt.
You can do the following in the /etc/profile or per user in the .profile in the home directory.
The follwoing will make your promt look like so:
(lvapp11) /var/adm
HOST="<`hostname |cut -d"." -f1`>"
if [ "$LOGNAME" = "root" ]; then
PROMT="#"
else
PROMT=">"
fi
PS1='${HOST} ${PWD}${PROMT} '
PS2='${HOST} ${PWD}> '
export PS1 PS2
trap 1 2 3
From here you should be able to run the command ot check your database and put it in the promt the way you like it.
~ Richard
The follwoing will make your promt look like so:
(lvapp11) /var/adm
HOST="<`hostname |cut -d"." -f1`>"
if [ "$LOGNAME" = "root" ]; then
PROMT="#"
else
PROMT=">"
fi
PS1='${HOST} ${PWD}${PROMT} '
PS2='${HOST} ${PWD}> '
export PS1 PS2
trap 1 2 3
From here you should be able to run the command ot check your database and put it in the promt the way you like it.
~ Richard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 09:22 AM
09-09-2002 09:22 AM
Re: Change Login Prompt.
Just to add a bit, the file you use is not limited to /etc/issue. You can create a file of your own. See the man page on telnetd for instructions. Either way what you would see is something like this
Database $DBS
login:
Database $DBS
login:
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP