- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- TERM Prompt Problem.
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
02-23-2002 01:14 AM
02-23-2002 01:14 AM
TERM=(hp)
Then I just enter vt100 as the terminal and get into the user home directory.
How can eliminate this from hepnning, I have tried to setup the TERM in the .profile but did not succeed until now.
Please advise??
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2002 01:58 AM
02-23-2002 01:58 AM
Re: TERM Prompt Problem.
Hello Mubarak
You have to set terminal type (eg. vt100)with your terminal name in a file called "/etc/ttytype". Additional info you can get it from #man ttytype.
Rgds
Manoj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2002 02:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2002 02:52 AM
02-23-2002 02:52 AM
Re: TERM Prompt Problem.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x75e8660142b2d5118ff10090279cd0f9,00.html
http://forums.itrc.hp.com/cm/QuestionAnswer/0,,0xceef35067c18d6118ff40090279cd0f9,00.html
g`d luck
t+-
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2002 07:56 AM
02-23-2002 07:56 AM
Re: TERM Prompt Problem.
This occurs if you do the switch- user- command like you did:
su -
this doesn't only change your identity, but also the environment. If you do a su without the minus- character, the problem won't be existant. So try the following command:
su
you will switch identities, but the TERM- variable will be the same than before switching. At my level of kowledge there is no way to do su - without destroying TERM- variable.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2002 10:39 AM
02-23-2002 10:39 AM
Re: TERM Prompt Problem.
Try this:
Check your .profile and comment this line.
eval ` tset -s -Q -m ':?hp' `
make it
# eval ` tset -s -Q -m ':?hp' `
and set your term as
export TERM=vt100
or
TERM=vt100;export TERM
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2002 11:09 PM
02-23-2002 11:09 PM
Re: TERM Prompt Problem.
I have tried all solutions but the one that worked in this case was updating the .login file by commenting:
eval `tset -s -Q -m ':?hp' `
and adding:
setenv TERM vt100
Thanks again for your support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2002 06:29 PM
02-24-2002 06:29 PM
Re: TERM Prompt Problem.
Now, the only shell that handles the hundreds of terminal types correctly is the HP default version of /etc/profile (found in /usr/newconfig/etc). There is a command called /sbin/ttytype which will attempt to identify the myriad of real terminals and emulators. NOTE: vt100 is one of the most poorly implemented standards for emulators. vt100 refers to a very old and obsolete DEC VT100 terminal. However, for simple ASCII command lines, most emulators are adequate but may fall apart for menu programs.
Since it appears that you may be using csh (ie, setenv TERM vt100), you'll need to add the ttytype command to /etc/csh.login. The default csh.login has soemthing like:
if ( ! $?TERM )
setenv TERM
endif
This isn't good...some terminal emulators will set the terminal type as part of the telnet negotiation prior to login, and in some emulators, this may not match the actual emulation. Indeed, some users may set TERM in order to communicate a value such as the $DISPLAY variable.
So, rather than test to see if it was set prior to login, ask ttytype to recheck the terminal:
eval /sbin/ttytype -s
ttytype 'guesses' what type of terminal you have by sending specific escape sequences to the terminal and waiting for a reply. If your emulator responds correctly then TERM will be set correctly.
As mentioned, emulators are not real terminals and some have big problems emulating automatic responses. In that case, your solution to forcibly set TERM to vt100 will have to suffice. Note that most modern terminals, especially smart terminals like the HP 700/9x series are better suited for menu programs such as SAM and swinstall.
Bill Hassell, sysadmin