Sample Header Ad - 728x90

linux + tput: No value for $TERM and no -T specified

1 vote
4 answers
7907 views
I use in my bash script the tput command in order to colored the text as tput setaf 2 when I run the script from putty or console every thing is ok but when I run some external WIN application engine that run the script via SSH the we get the following error on tput tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified tput: No value for $TERM and no -T specified please advice what need to set ( ENV or else ) in my bash script in order to use the tput command ?
Asked by yael (13936 rep)
Jan 10, 2018, 10:55 AM
Last activity: Nov 23, 2022, 02:03 PM