Operating System - HP-UX
1824487 Members
3516 Online
109672 Solutions
New Discussion юеВ

Error in Glance execution

 
hboo
Frequent Advisor

Error in Glance execution

Hello all

Im trying to exec glance in my HPUX 11.11 server and this is the error i get:

== GlancePlus Fatal Error =============
Version:
User : fongsjehte(/dev/pts/te) Date: Thu May 3 16:11:18
File : ../../../gp/source/glance/terminal.c Line: 322
System : sidved02 B.11.11 9000/800

Unable to initialize terminal.
Terminal length of 23 is too small, try 24 lines.
===============================================

Somebody can help me please?
Thank's

Hayse :(
6 REPLIES 6
Sundar_7
Honored Contributor

Re: Error in Glance execution

1) increase the size of your terminal
2) Execute resize command

# resize

3) Now run glance

# glance
Learn What to do ,How to do and more importantly When to do ?
Aussan
Respected Contributor

Re: Error in Glance execution

you have to reset your terminal length

you can set it also in the .profile by doing

export LINES=25
The tongue weighs practically nothing, but so few people can hold it
Alzhy
Honored Contributor

Re: Error in Glance execution

Make sure your TERMINAL (TERM envar) is one of the supported ones -- i.e. vt100, ansi, xterm, etc..

Make sure your terminal is INDEED one of the above mentioned emulations.

export TERM=vt100 (or xterm, etc..)

or

setenv TERM vt100 (if using csh or variants)

And lauch glance...

If not launching:

do:

stty rows 24
stty cols 80

That's it.!
Hakuna Matata.
hboo
Frequent Advisor

Re: Error in Glance execution

Resize didn├В┬┤t work

Set param LINES=25 works fine!! but Im trying to set this value in my user .profile and doesn├В┬┤t take it.

My .profile is this:

if [ ! "$VUE" ]; then

# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs

echo
echo "Value of TERM has been set to \"$TERM\". "
export TERM

EDITOR=vi
export EDITOR

fi # if !VUE


# Set up shell environment:

set -u # error if undefined variable.
trap "echo 'logout root'" 0 # what to do on exit.


# Set up shell variables:

MAIL=/var/mail/root
# don't export, so only login shell checks.

echo "WARNING: YOU ARE SUPERUSER !!\n"
export HOSTNAME=$(hostname)
export PS1='[$HOSTNAME]$PWD> '
export HISTFILE=/home/fongsjeh/.sh_history
export HISTSIZE=1024

LINES=25
export LINES

# variable para ESP scheduller
export ESPAGENTDIR=/opt/esp/agent/script

# Set perission to files

umask 022
Aussan
Respected Contributor

Re: Error in Glance execution

do it in one line

export LINES=25

put in in /etc/profile and it will be set for everyone that logs in

if you want to keep it in 2 lines

LINES=25
export $LINES

you forgot the $
The tongue weighs practically nothing, but so few people can hold it
Dennis Handly
Acclaimed Contributor

Re: Error in Glance execution

>Sundar: resize

This is not the correct way to run resize. You need to do:
$ eval $(resize)

This will set LINES and COLUMNS.

>Aussan: do it in one line: export LINES=25

This isn't required but it looks better this way.

>put in in /etc/profile and it will be set for everyone that logs in

This is not a good idea since each person may want different sizes.

>if you want to keep it in 2 lines
LINES=25
export $LINES
>you forgot the $

This is NOT correct. There should be no "$", export takes an identifier.