Operating System - HP-UX
1833433 Members
2893 Online
110052 Solutions
New Discussion

another problem I've run into tonight

 
Kerilyn O'Donnell
Contributor

another problem I've run into tonight

I cannot set my TERM to vt100, so I can not use vi to edit a file I need to edit before rebooting the system. (Currently I have it booted to the cdrom.) The error I see is:

unknown: Unknown terminal type

[using open mode]
Segmentation Fault - core dumped


Whenever I try to set by set TERM=vt100 then I try to export TERM, then try to echo TERM - it prints a blank line
7 REPLIES 7
melvyn burnard
Honored Contributor

Re: another problem I've run into tonight

What OS are you using? and what model 9000 is it?
How is the terminal connected? via a mux, or is it the web console?
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Scott Van Kalken
Esteemed Contributor

Re: another problem I've run into tonight

Kerilyn,

Are you in a recovery shell?

If this is the case, and you're on the console, you should be able to check the TERM type with the function keys.

Also check what shell you're using - should be ksh or sh

what else....

try export TERM=vt220 or other term types ...

can't think apart from that.



Michael Tully
Honored Contributor

Re: another problem I've run into tonight

Hi,

If you are on the system console, you
may want to try a different term type
like hp, or 70096.

# export TERM=70096
or
# export TERM=hp

then try
# clear

HTH
-Michael
Anyone for a Mutiny ?
Bill McNAMARA_1
Honored Contributor

Re: another problem I've run into tonight

# file core

to figure out what is cor'ing.
# what core
to help figure out why.

# export TERM=vt220

should work as suggested.
Check your .profile for strange term settings.

Later,
Bill



It works for me (tm)
K.Vijayaragavan.
Respected Contributor

Re: another problem I've run into tonight

command to set the terminal
===========================
type is :-
=========
#TERM=vt100;export TERM
#echo $TERM
(Note : echo $TERM command will display the current terminal type)

If the above commands are not helping out then you make sure you have the fileset called " Non HP Terminfo File" installed in your system by giving the command "#swlist -l fileset | grep term"
If you have CDE and Xconsole availabe in your system you can use #dtpad command to edit the file.

-Vijay
"Let us fine tune our knowledge together"
Steve Steel
Honored Contributor

Re: another problem I've run into tonight

Hi



Try export TERM=hp
vi

If this does not work use ex if it is a small
edit.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Peter Kloetgen
Esteemed Contributor

Re: another problem I've run into tonight

Hi Kerilyn,

is it possible, that you logged on as a "nomal" user and after that you did a switch user to root by "su -"? Then please try to do the command like this: "su" This should fix the problem.


Allways stay on the bright side of life!

Peter
I'm learning here as well as helping