Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TERM environment variable not set

Tags:

linux

sh

I have a file.sh with this, when run show : TERM environment variable not set.

smbmount //172.16.44.9/APPS/Interfas/HERRAM/sc5 /mnt/siscont5 -o  iocharset=utf8,username=backup,password=backup2011,r  if [ -f /mnt/siscont5/HER.TXT ]; then     echo "No puedo actualizar ahora"     umount /mnt/siscont5 else      if [ ! -f /home/emni/siscont5/S5.TXT ]; then         echo "Puedo actualizar... "         touch /home/emni/siscont5/HER.TXT         touch /mnt/siscont5/SC5.TXT         mv -f /home/emni/siscont5/CCORPOSD.DBF /mnt/siscont5         mv -f /home/emni/siscont5/CCTRASD.DBF /mnt/siscont5         rm /mnt/siscont5/SC5.TXT         rm /home/emni/siscont5/HER.TXT         echo "La actualizacion ha sido realizada..."     else         echo "No puedo actualizar ahora: Interfaz exportando..."     fi fi umount /mnt/siscont5 echo "/mnt/siscont5 desmontada..." 
like image 625
meyquel Avatar asked Apr 26 '13 17:04

meyquel


People also ask

What is term environment variable?

The TERM environment variable is used for terminal handling. It lets DB-Access (and other character-based applications) recognize and communicate with the terminal that you are using.

How are environment variables set?

An environment variable is a variable whose value is set outside the program, typically through functionality built into the operating system or microservice. An environment variable is made up of a name/value pair, and any number may be created and available for reference at a point in time.

How do I set an environment variable permanently?

You can set an environment variable permanently by placing an export command in your Bash shell's startup script " ~/. bashrc " (or "~/. bash_profile ", or " ~/. profile ") of your home directory; or " /etc/profile " for system-wide operations.


1 Answers

You can see if it's really not set. Run the command set | grep TERM.

If not, you can set it like that: export TERM=xterm

like image 60
cpr4t3s Avatar answered Oct 02 '22 17:10

cpr4t3s