Operating System - HP-UX
1757061 Members
2428 Online
108858 Solutions
New Discussion юеВ

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

 
Sebastian Szewczyk
Frequent Advisor

Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

Hello,

I am using on SAP user adn ORACLE user /usr/bin/csh (I must use them).
When ever I am trying to login, it is stopping giving the follwoing message :

TERM = (hp)

How to set the terminal, so that it will login automatically on terminal which i need something like vt100.

In /etc/csh.profile I put the line setenv TERM vt100. I think when I put this line I will change that globally but when i login su - oraxx login stopping giving the following qustion

kiy(root):/root# su - oratst
(c)Copyright 1983-2003 Hewlett-Packard Development Company, L.P.
(c)Copyright 1979, 1980, 1983, 1985-1993 The Regents of the Univ. of California
(c)Copyright 1980, 1984, 1986 Novell, Inc.
(c)Copyright 1986-2000 Sun Microsystems, Inc.
(c)Copyright 1985, 1986, 1988 Massachusetts Institute of Technology
(c)Copyright 1989-1993 The Open Software Foundation, Inc.
(c)Copyright 1990 Motorola, Inc.
(c)Copyright 1990, 1991, 1992 Cornell University
(c)Copyright 1989-1991 The University of Maryland
(c)Copyright 1988 Carnegie Mellon University
(c)Copyright 1991-2003 Mentat Inc.
(c)Copyright 1996 Morning Star Technologies, Inc.
(c)Copyright 1996 Progressive Systems, Inc.


RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.


Hewlett-Packard Company
3000 Hanover Street
Palo Alto, CA 94304 U.S.A.

Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).
TERM = (hp)

What I need to do because that situation is problem in automatically backup on Data protector?

Best Regards
seboizm
8 REPLIES 8
Dennis Handly
Acclaimed Contributor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

>In /etc/csh.profile I put the line setenv TERM vt100.

(Did you mean /etc/csh.login?)

This will set it globally for the scummy C shell. But you then have to remove the call to tset(1) or ttytype(1) that causes that prompt.

It may be in ~/.login or ~/.cshrc.
john korterman
Honored Contributor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

Hi Sebastian,

what you describe is probably caused by a "tset" command in the ~oraxx/.login files.


regards,
John K.
it would be nice if you always got a second chance
Sebastian Szewczyk
Frequent Advisor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

I have in oraxxx file like:
total 136
-rw-r-xr-x 1 oratst dba 2198 Oct 19 2006 .cshrc
-rw-r-xr-x 1 oratst dba 4058 Oct 19 2006 .dbenv.csh
-rw-r-xr-x 1 oratst dba 4053 Oct 19 2006 .dbenv.sh
-rw-r-xr-x 1 oratst dba 4058 Oct 19 2006 .dbenv_rod.csh
-rw-r-xr-x 1 oratst dba 4053 Oct 19 2006 .dbenv_rod.sh
-rw-r-xr-x 1 oratst dba 250 Jul 2 2004 .dbsrc_rod.csh
-rw-r-xr-x 1 oratst dba 232 Jul 2 2004 .dbsrc_rod.sh
-r--r--r-- 1 oratst dba 347 Oct 19 2006 .exrc
-rw-r-xr-x 1 oratst dba 1700 May 28 09:08 .login
-rw-r-xr-x 1 oratst dba 1700 Oct 19 2006 .login.280507.ss
-rw-r-xr-x 1 oratst dba 1487 May 28 09:24 .profile
-rw-r-xr-x 1 oratst dba 1487 Oct 19 2006 .profile.280597.ss
-rw-r-xr-x 1 oratst dba 8576 Oct 19 2006 .sapenv.csh
-rw-r-xr-x 1 oratst dba 7883 May 25 09:05 .sapenv.sh
-rw-r-xr-x 1 oratst dba 8576 Oct 19 2006 .sapenv_rod.csh
-rw-r-xr-x 1 oratst dba 7883 Oct 19 2006 .sapenv_rod.sh
-rw-r-xr-x 1 oratst dba 1116 Oct 8 2004 .sapsrc_rod.csh
-rw-r-xr-x 1 oratst dba 817 Oct 8 2004 .sapsrc_rod.sh
-rw------- 1 oratst dba 48 May 25 09:38 .sh_history

In file .login I have something like that:

#set up the terminal
eval `tset -s -Q -m ':?hp' `
stty erase "^H" kill "^U" intr "^C" eof "^D" susp "^Z" hupcl ixon ixoff tostop
tabs

When I change /etc/csh.login from
if ( ! $?TERM ) then # if TERM is not set,
setenv TERM hp # use the default
endif
on:
setenv TERM vt100

and I must remove line form .login file in my home directory?

Best regards
seboizm
john korterman
Honored Contributor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

Hi,

try uncommenting the line:
eval `tset -s -Q -m ':?hp' `

as that is probably responsible for the not-wanted prompting.


regards,
John K.
it would be nice if you always got a second chance
Dennis Handly
Acclaimed Contributor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

>When I change /etc/csh.login from

I would suggest you put that back and copy the setenv to .login.
Sebastian Szewczyk
Frequent Advisor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

Ok thanks I hash that line:
eval `tset -s -Q -m ':?hp' `
in .login file in home directory end now is ok.
But I have a second question of my post how I can set terminal on vt100 or other than because now when I hash that line I have xterm?

Best regards
seboizm
john korterman
Honored Contributor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

Hi again,

if TERM is already set to something reasonable, there is no need to change it. Check the setting by:
echo $TERM
if it does not display anything usable, then change the setting (C-shell syntax):
setenv TERM vt100
or whatever you prefer...

regards,
John K.
it would be nice if you always got a second chance
Sebastian Szewczyk
Frequent Advisor

Re: Set TERM=vt100 (or other) in C SHELL - HP-UX 11.23?

Ok but i think to set the Term automatically and after login I want to have vt100.
Also this isn't problem set terma after login.
Thanks Very much evrything work how i want.

Best regard
seboizm