After you log into a Unix server (AIX for example).
You get the error about terminal type when you try to vi or example below when try to edit crontab.
$ crontab -e
ex: 0602-108 xterm-256color is not a recognized terminal type.
[Press return to continue]
# check your current TERM value
$ env | grep TERM
TERM=xterm-256color
# set to new TERM value to fix
export TERM=vt100
You will need to add to your startup file to something like below:
$ cat .profile
PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:.
export PATH
export TERM=vt100
if [ -s "$MAIL" ] # This is at Shell startup. In normal
then echo "$MAILMSG" # operation, the Shell checks
fi # periodically.
No comments:
Post a Comment