<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SSH session: &amp;quot;tput: No value for $TERM and no -T specified: in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255042#M52533</link>
    <description>Your diagnosis is entirely correct. The remote host's bashrc does in fact contain code as you describe. I put in "t" switch and it worked without receiving the unwanted message.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
    <pubDate>Fri, 10 Sep 2010 18:07:44 GMT</pubDate>
    <dc:creator>P_F</dc:creator>
    <dc:date>2010-09-10T18:07:44Z</dc:date>
    <item>
      <title>SSH session: "tput: No value for $TERM and no -T specified:</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255040#M52531</link>
      <description>During an ssh batchmode ssh session I encounter this message which I've been unable to suppress which is sent only to the session screen:&lt;BR /&gt;&lt;BR /&gt; tput: No value for $TERM and no -T specified&lt;BR /&gt;&lt;BR /&gt;This is one example of the command, variants attempted:&lt;BR /&gt;&lt;BR /&gt;ssh -q  -o "BatchMode yes" $HOSTNAME ls | grep $STRING  &amp;gt; /dev/null 2&amp;gt;&amp;amp;1)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The message string only appears on few nodes - and always the same nodes - out of a 100 or so. I cannot alter any settings on these nodes I am establishing the SSH connection to. I would just like to suppress the message.&lt;BR /&gt;&lt;BR /&gt;Any suggestions ?</description>
      <pubDate>Fri, 10 Sep 2010 16:43:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255040#M52531</guid>
      <dc:creator>P_F</dc:creator>
      <dc:date>2010-09-10T16:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: SSH session: "tput: No value for $TERM and no -T specified:</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255041#M52532</link>
      <description>A SSH command line that specifies a remote command will normally run in "non-interactive mode". One of the consequences is that no pseudo-TTY will be assigned for the connection in the remote host.&lt;BR /&gt;&lt;BR /&gt;This happens because /etc/profile, ~/.profile or some other login script on those nodes contains a tput command that is executed unconditionally - even if the session does not have a TTY associated with it. (The HP-UX default login scripts have had this issue for ages.) &lt;BR /&gt;&lt;BR /&gt;The true fix would be to find the tput commands on those nodes and make them conditional. For example, on sh, ksh, bash and other Bourne-style shells, you could replace the command:&lt;BR /&gt;&lt;BR /&gt;tput &lt;SOME options=""&gt;&lt;BR /&gt;&lt;BR /&gt;with:&lt;BR /&gt;&lt;BR /&gt;tty -s &amp;amp;&amp;amp; tput &lt;SOME options=""&gt;&lt;BR /&gt;&lt;BR /&gt;This will run the tput command only if the session is interactive and has a TTY assigned. ("tput" is a terminal initialization/configuration command, so running it when there is no TTY makes no sense anyway.)&lt;BR /&gt;&lt;BR /&gt;If you cannot modify the login scripts on the remote nodes, a workaround is to tell SSH to request a TTY even if the session will be non-interactive: add the option "-t" to the ssh command line. For example:&lt;BR /&gt;&lt;BR /&gt;ssh -tq -o "BatchMode yes" ...&lt;BR /&gt;&lt;BR /&gt;If you run this command from crontab or some other non-interactive context, there won't be a local TTY either. In that case, you will need "-tt" instead of "-t" to implement the workaround:&lt;BR /&gt;&lt;BR /&gt;ssh -ttq -o "BatchMode yes" ...&lt;BR /&gt;&lt;BR /&gt;MK&lt;/SOME&gt;&lt;/SOME&gt;</description>
      <pubDate>Fri, 10 Sep 2010 17:33:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255041#M52532</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-09-10T17:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: SSH session: "tput: No value for $TERM and no -T specified:</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255042#M52533</link>
      <description>Your diagnosis is entirely correct. The remote host's bashrc does in fact contain code as you describe. I put in "t" switch and it worked without receiving the unwanted message.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 10 Sep 2010 18:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255042#M52533</guid>
      <dc:creator>P_F</dc:creator>
      <dc:date>2010-09-10T18:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: SSH session: "tput: No value for $TERM and no -T specified:</title>
      <link>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255043#M52534</link>
      <description>Question was answered fully.</description>
      <pubDate>Fri, 10 Sep 2010 18:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/ssh-session-quot-tput-no-value-for-term-and-no-t-specified/m-p/5255043#M52534</guid>
      <dc:creator>P_F</dc:creator>
      <dc:date>2010-09-10T18:13:00Z</dc:date>
    </item>
  </channel>
</rss>

