<?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: tee command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630987#M41215</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The output of tar goes to stderr, so you need:&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/1mn home opt 2&amp;gt;&amp;amp;1 | tee /backuplogs/bkp1.log&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
    <pubDate>Thu, 13 Dec 2001 08:59:09 GMT</pubDate>
    <dc:creator>Robin Wakefield</dc:creator>
    <dc:date>2001-12-13T08:59:09Z</dc:date>
    <item>
      <title>tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630986#M41214</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If I try "tar -cvf /dev/rmt/1mn home opt | tee /backuplogs/bkp1.log" , system is not creating the log file. It is only displaying the o/p on screen.&lt;BR /&gt;&lt;BR /&gt;What may be the possible reasons?</description>
      <pubDate>Thu, 13 Dec 2001 08:50:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630986#M41214</guid>
      <dc:creator>SSP_1</dc:creator>
      <dc:date>2001-12-13T08:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630987#M41215</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The output of tar goes to stderr, so you need:&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/1mn home opt 2&amp;gt;&amp;amp;1 | tee /backuplogs/bkp1.log&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Thu, 13 Dec 2001 08:59:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630987#M41215</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-12-13T08:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630988#M41216</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;It would appear that tar outputs it verbose text to standard error. Try the same command with&lt;BR /&gt;tar cvf tarfile file 2&amp;gt; logfile&lt;BR /&gt;Obviously this doen't help you with tee. A look at the man page for tee doesn't give any indication that you can use it with standard error, only standard out.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Simon.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2001 09:02:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630988#M41216</guid>
      <dc:creator>Simon Abbott</dc:creator>
      <dc:date>2001-12-13T09:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630989#M41217</link>
      <description>Thats cos the output from tar is going to stderr, not stdout - try this:&lt;BR /&gt;&lt;BR /&gt;tar -cvf /dev/rmt/1mn home opt 2&amp;gt;&amp;amp;1 | tee /backuplogs/bkp1.log&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;Duncan</description>
      <pubDate>Thu, 13 Dec 2001 09:03:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630989#M41217</guid>
      <dc:creator>Duncan Edmonstone</dc:creator>
      <dc:date>2001-12-13T09:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630990#M41218</link>
      <description>what does 2&amp;gt;&amp;amp;1 mean?&lt;BR /&gt;2=stderr &amp;amp; 1=stdoutput right? then what does "2&amp;gt;&amp;amp;1" will do?</description>
      <pubDate>Thu, 13 Dec 2001 09:07:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630990#M41218</guid>
      <dc:creator>SSP_1</dc:creator>
      <dc:date>2001-12-13T09:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630991#M41219</link>
      <description>Because the output from tar is sent to standard error and tee reeds from standard output.&lt;BR /&gt;&lt;BR /&gt;You need to redirect the tar ouput : tar cvf /dev/rmt/1mn home opt 2&amp;gt;&amp;amp;1 | tee ...</description>
      <pubDate>Thu, 13 Dec 2001 09:08:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630991#M41219</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-12-13T09:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630992#M41220</link>
      <description>"2&amp;gt;&amp;amp;1" tells the shell to redirect all output that normally would be sent to file descriptor 2 (standard error) to file descriptor 1 (standard output).&lt;BR /&gt;Normal output and errors are sent to two different file descriptors so that you can distinguish between them in a script. Normally filedescriptors 1 and 2 are both set to your display.</description>
      <pubDate>Thu, 13 Dec 2001 09:11:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630992#M41220</guid>
      <dc:creator>Wim Rombauts</dc:creator>
      <dc:date>2001-12-13T09:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630993#M41221</link>
      <description>2&amp;gt;&amp;amp;1 means "send stderr (2) to wherever stdout (1) is being output"&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2001 09:11:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630993#M41221</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-12-13T09:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630994#M41222</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;2&amp;gt;&amp;amp;1 simply means file descriptor 2 (stderr) is a duplicate of file descriptor 1 (stdout), in other words stderr is sent out as if it were stdout.&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Thu, 13 Dec 2001 09:13:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630994#M41222</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2001-12-13T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: tee command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630995#M41223</link>
      <description>thanks a lot all.&lt;BR /&gt;I am able to come out of it.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Dec 2001 09:25:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/tee-command/m-p/2630995#M41223</guid>
      <dc:creator>SSP_1</dc:creator>
      <dc:date>2001-12-13T09:25:56Z</dc:date>
    </item>
  </channel>
</rss>

