<?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: run batch error in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421494#M36601</link>
    <description>thx replies and sorry to fail to paste my command when post the question , the below is the command I used.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;scp edp_usr@192.168.0.2:/tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thx</description>
    <pubDate>Mon, 18 May 2009 06:16:28 GMT</pubDate>
    <dc:creator>heaman1</dc:creator>
    <dc:date>2009-05-18T06:16:28Z</dc:date>
    <item>
      <title>run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421491#M36598</link>
      <description>I have added a script ( run at cron ) to scp file to remote server , it is fine to copy the file to remote server , but it pop the message "No value for $TERM and no -T specified" , ( even have the message , but still works fine ) , can advise how to erase the message when everytime run this batch job ? thx</description>
      <pubDate>Mon, 18 May 2009 05:22:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421491#M36598</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-05-18T05:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421492#M36599</link>
      <description>this is the IT equivalent of going to a mechanic and having the following conversation:&lt;BR /&gt;&lt;BR /&gt;- my car makes a funny rattling sound when I drive it...&lt;BR /&gt;* OK can I take a look at it?&lt;BR /&gt;- No I didn't bring it with me&lt;BR /&gt;* ah well - not sure I can help you then&lt;BR /&gt;&lt;BR /&gt;You get the point? You have a script that does something (which apparently involves a scp, but who knows what else) - you get an error message from it, and you want help fixing it, but you haven't shared the script&lt;BR /&gt;&lt;BR /&gt;who knows *where* that error message comes from - could be anywthing - if I were to guess, I'd say there's some code in there that's assuming you are attached to a terminal, such as some login .profile sourcing which might come from soing a "su - user" somewhere in the script - but as you didn't share any details, its not easy to help any further...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 18 May 2009 05:50:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421492#M36599</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-05-18T05:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421493#M36600</link>
      <description>Heaman.&lt;BR /&gt;&lt;BR /&gt;You have to the right group and please post you script, so you get results very  fast.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2009 06:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421493#M36600</guid>
      <dc:creator>Basheer_2</dc:creator>
      <dc:date>2009-05-18T06:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421494#M36601</link>
      <description>thx replies and sorry to fail to paste my command when post the question , the below is the command I used.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;scp edp_usr@192.168.0.2:/tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thx</description>
      <pubDate>Mon, 18 May 2009 06:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421494#M36601</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-05-18T06:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421495#M36602</link>
      <description>and that's the whole script is it?&lt;BR /&gt;&lt;BR /&gt;somehow I doubt it, as that appears to be half of a scp statement... posting fragments isn't going to work... please post the cron entry and the full script&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 18 May 2009 06:28:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421495#M36602</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-05-18T06:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421496#M36603</link>
      <description>scp /tmp/test.ora edp_usr@192.168.0.2:/tmp&lt;BR /&gt;&lt;BR /&gt;while I set ssh without password</description>
      <pubDate>Mon, 18 May 2009 06:56:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421496#M36603</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-05-18T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421497#M36604</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Can you upload your script ?&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Mon, 18 May 2009 07:05:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421497#M36604</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-05-18T07:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421498#M36605</link>
      <description>scp /tmp/test.ora edp_usr@192.168.0.2:/tmp&lt;BR /&gt;&lt;BR /&gt;and that's what appears in cron is it? &lt;BR /&gt;&lt;BR /&gt;I can see _no_ way that this would cause the message you are seeing, which makes me think there's more to your script than just this one line.&lt;BR /&gt;&lt;BR /&gt;If you are not prepared to help yourself by providing the right information, you're unlikely to get a satisfactory outcome...&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 18 May 2009 07:11:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421498#M36605</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-05-18T07:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421499#M36606</link>
      <description>thx reply&lt;BR /&gt;&lt;BR /&gt;the is really the script that I run at cron , but the message is happens in RH linux server , &lt;BR /&gt;&lt;BR /&gt;if the message is caused from the incorrect TERM setting , can I add the TERM setting to the batch job ? thx</description>
      <pubDate>Mon, 18 May 2009 08:02:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421499#M36606</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-05-18T08:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421500#M36607</link>
      <description>ahh and we were just supposed to guess that were we?&lt;BR /&gt;&lt;BR /&gt;So the googling on error message in question seems to indicate that it comes from the "tput" command, which again suggests that this comes from a login operation somewhere (like an entry bin a .profile or .bashrc or similar)&lt;BR /&gt;&lt;BR /&gt;But as we are still flailing around trying to understand you end-to-end process, it's hard to say...&lt;BR /&gt;&lt;BR /&gt;- you have a cron job that is a simple scp command... does that cron run on HP-UX or RedHat?&lt;BR /&gt;&lt;BR /&gt;- *where* do you see the "No value for $TERM and no -T specified" message? at what point during the operation and in a log, or seomwhere else&lt;BR /&gt;&lt;BR /&gt;Is HP-UX involved in this at all? If not you've posted in the wrong forum...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Mon, 18 May 2009 08:18:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421500#M36607</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2009-05-18T08:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421501#M36608</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you don't need the standard output and standard error message produced by the script just redirect the outputs to /dev/null like this in cron&lt;BR /&gt;&lt;BR /&gt;0 2 * * * &amp;lt;script with full path&amp;gt;  &amp;gt;/dev/null 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this will fix..&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2009 08:22:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421501#M36608</guid>
      <dc:creator>Ganesan R</dc:creator>
      <dc:date>2009-05-18T08:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421502#M36609</link>
      <description>thx reply ,&lt;BR /&gt;&lt;BR /&gt;- you have a cron job that is a simple scp command... does that cron run on HP-UX or RedHat?  --&amp;gt; Redhat&lt;BR /&gt;&lt;BR /&gt;- *where* do you see the "No value for $TERM and no -T specified" message? at what point during the operation and in a log, or seomwhere else   --&amp;gt; I got mail that have this error , &lt;BR /&gt;&lt;BR /&gt;Is HP-UX involved in this at all? If not you've posted in the wrong forum...&lt;BR /&gt;&lt;BR /&gt;--&amp;gt; the command run on HP-UX works without any problem , but have the problem in RH  .&lt;BR /&gt;&lt;BR /&gt;thx&lt;BR /&gt;</description>
      <pubDate>Mon, 18 May 2009 08:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421502#M36609</guid>
      <dc:creator>heaman1</dc:creator>
      <dc:date>2009-05-18T08:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421503#M36610</link>
      <description>heaman1,&lt;BR /&gt;I don't think this is coming from the scp command. You mention using ssh as well. It is possible that ssh is throwing this error because it's running from a batch job with no controlling terminal. It tells you exactly what is wrong - either set up a valid $TERM or utilize the "-T" option, which the man page says "Disable[s] pseudo-tty allocation".&lt;BR /&gt;&lt;BR /&gt;As stated, it would be easier if you could post the script.</description>
      <pubDate>Mon, 18 May 2009 22:08:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421503#M36610</guid>
      <dc:creator>macosta</dc:creator>
      <dc:date>2009-05-18T22:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421504#M36611</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thats true first you post your script then it will be easy to catch your error.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Tue, 19 May 2009 04:29:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421504#M36611</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-05-19T04:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: run batch error</title>
      <link>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421505#M36612</link>
      <description>hello&lt;BR /&gt;&lt;BR /&gt;try to add&lt;BR /&gt;-o BatchMode=yes to scp command.&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;scp -o batchmode=yes /local/file remote:/file&lt;BR /&gt;&lt;BR /&gt;Jean-Yves</description>
      <pubDate>Tue, 19 May 2009 06:45:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/run-batch-error/m-p/4421505#M36612</guid>
      <dc:creator>Jean-Yves Picard</dc:creator>
      <dc:date>2009-05-19T06:45:52Z</dc:date>
    </item>
  </channel>
</rss>

