<?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: cmd shell and commands in Operating System - Microsoft</title>
    <link>https://community.hpe.com/t5/operating-system-microsoft/cmd-shell-and-commands/m-p/4077938#M8460</link>
    <description>Thanks, Sheldon.&lt;BR /&gt;Your response did the trick.&lt;BR /&gt;For some reason (still unknown to me) I was finally able to capture the output by typing this:&lt;BR /&gt;nc -v esm9-vfpri1 515 &amp;lt; c:\WINDOWS\get.txt 2&amp;gt; fileOutX.txt&lt;BR /&gt;But output doesn't show any error.&lt;BR /&gt;&lt;BR /&gt;These are the contents of fileOutX.txt (which is the output I get when I simply run the command w/o redirecting anything anywhere.&lt;BR /&gt;&lt;BR /&gt;DNS fwd/rev mismatch: esm9-vfpri1.vf-es.internal.vodafone.com != ESM9-VFPRI1&lt;BR /&gt;esm9-vfpri1.vf-es.internal.vodafone.com [10.229.28.104] 515 (printer) open&lt;BR /&gt;&lt;BR /&gt;How can that be?&lt;BR /&gt;&lt;BR /&gt;Tnks.</description>
    <pubDate>Mon, 01 Oct 2007 00:40:25 GMT</pubDate>
    <dc:creator>Edgar Zapata</dc:creator>
    <dc:date>2007-10-01T00:40:25Z</dc:date>
    <item>
      <title>cmd shell and commands</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cmd-shell-and-commands/m-p/4077936#M8458</link>
      <description>Is there a tool or a command that will send the output of a command to a file?&lt;BR /&gt;We're running this sentence (netcat.exe):&lt;BR /&gt;nc -v esm9-vfpri1 515 &amp;lt; c:\WINDOWS\get.txt&lt;BR /&gt;&lt;BR /&gt;We get this output:&lt;BR /&gt;DNS fwd/rev mismatch: esm9-vfpri1.vf-es.internal.vodafone.com != ESM9-VFPRI1&lt;BR /&gt;esm9-vfpri1.vf-es.internal.vodafone.com [10.229.28.104] 515 (printer) open&lt;BR /&gt;&lt;BR /&gt;But when we try:&lt;BR /&gt;nc -v esm9-vfpri1 515 &amp;lt; c:\WINDOWS\get.txt &amp;gt; outputFile&lt;BR /&gt;&lt;BR /&gt;the contents of outputFile is either 0 KB or 1 KB.&lt;BR /&gt;type outputfile returns:&lt;BR /&gt;ÿ&lt;BR /&gt;&lt;BR /&gt;Tnks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 28 Sep 2007 02:03:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cmd-shell-and-commands/m-p/4077936#M8458</guid>
      <dc:creator>Edgar Zapata</dc:creator>
      <dc:date>2007-09-28T02:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: cmd shell and commands</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cmd-shell-and-commands/m-p/4077937#M8459</link>
      <description>Presumably the message is in the error stream and not the output stream (which you are capturing). &lt;BR /&gt;&lt;BR /&gt;   command  2&amp;gt; filename       Redirect any error message into a file&lt;BR /&gt;  (command) 2&amp;gt; filename       Redirect any CMD.exe error into a file&lt;BR /&gt;   command  &amp;gt; file 2&amp;gt;&amp;amp;1       Redirect output and errors to one file&lt;BR /&gt;   command  &amp;gt; fileA 2&amp;gt; fileB  Redirect output and errors to separate files&lt;BR /&gt;&lt;BR /&gt;   command  2&amp;gt;&amp;amp;1 &amp;gt;filename    This will fail!</description>
      <pubDate>Sat, 29 Sep 2007 12:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cmd-shell-and-commands/m-p/4077937#M8459</guid>
      <dc:creator>Sheldon Smith</dc:creator>
      <dc:date>2007-09-29T12:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: cmd shell and commands</title>
      <link>https://community.hpe.com/t5/operating-system-microsoft/cmd-shell-and-commands/m-p/4077938#M8460</link>
      <description>Thanks, Sheldon.&lt;BR /&gt;Your response did the trick.&lt;BR /&gt;For some reason (still unknown to me) I was finally able to capture the output by typing this:&lt;BR /&gt;nc -v esm9-vfpri1 515 &amp;lt; c:\WINDOWS\get.txt 2&amp;gt; fileOutX.txt&lt;BR /&gt;But output doesn't show any error.&lt;BR /&gt;&lt;BR /&gt;These are the contents of fileOutX.txt (which is the output I get when I simply run the command w/o redirecting anything anywhere.&lt;BR /&gt;&lt;BR /&gt;DNS fwd/rev mismatch: esm9-vfpri1.vf-es.internal.vodafone.com != ESM9-VFPRI1&lt;BR /&gt;esm9-vfpri1.vf-es.internal.vodafone.com [10.229.28.104] 515 (printer) open&lt;BR /&gt;&lt;BR /&gt;How can that be?&lt;BR /&gt;&lt;BR /&gt;Tnks.</description>
      <pubDate>Mon, 01 Oct 2007 00:40:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-microsoft/cmd-shell-and-commands/m-p/4077938#M8460</guid>
      <dc:creator>Edgar Zapata</dc:creator>
      <dc:date>2007-10-01T00:40:25Z</dc:date>
    </item>
  </channel>
</rss>

