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..."
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.
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With