<?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: about redirect in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526497#M701352</link>
    <description>Kamal,&lt;BR /&gt;&lt;BR /&gt;You can, but the method Alex mentions might better.  If you use a variable, take care with it if the error has spaces in it.&lt;BR /&gt;&lt;BR /&gt;Tony</description>
    <pubDate>Sun, 17 Apr 2005 15:26:25 GMT</pubDate>
    <dc:creator>Tony Scully_2</dc:creator>
    <dc:date>2005-04-17T15:26:25Z</dc:date>
    <item>
      <title>about redirect</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526495#M701350</link>
      <description>hi all&lt;BR /&gt;can i redirect error to variable?&lt;BR /&gt;&lt;BR /&gt;EX:&lt;BR /&gt;i have a script contain sql statments&lt;BR /&gt;can i redirect its error to varible insted &lt;BR /&gt;/dev/null&lt;BR /&gt;and use this variable later?&lt;BR /&gt;thanks&lt;BR /&gt;</description>
      <pubDate>Sun, 17 Apr 2005 14:57:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526495#M701350</guid>
      <dc:creator>kamal_15</dc:creator>
      <dc:date>2005-04-17T14:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: about redirect</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526496#M701351</link>
      <description>I think redirecting it to some file, will be a better idea. Like /tmp/my_script_err_$$&lt;BR /&gt;&lt;BR /&gt;($$ will get the process id, so it will be unique)</description>
      <pubDate>Sun, 17 Apr 2005 15:07:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526496#M701351</guid>
      <dc:creator>Alex Lavrov.</dc:creator>
      <dc:date>2005-04-17T15:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: about redirect</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526497#M701352</link>
      <description>Kamal,&lt;BR /&gt;&lt;BR /&gt;You can, but the method Alex mentions might better.  If you use a variable, take care with it if the error has spaces in it.&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Sun, 17 Apr 2005 15:26:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526497#M701352</guid>
      <dc:creator>Tony Scully_2</dc:creator>
      <dc:date>2005-04-17T15:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: about redirect</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526498#M701353</link>
      <description>I do this in a bash script with redirecting it from the /dev/null with &lt;BR /&gt;&lt;BR /&gt;command 2&amp;gt;&amp;amp;1 and vice versa&lt;BR /&gt;&lt;BR /&gt;You can pipe the outpu to a file for example with &lt;BR /&gt;&lt;BR /&gt;$cd DIR &amp;gt;&amp;gt; FILENAME 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;the error output aswell will be put into the file.&lt;BR /&gt;&lt;BR /&gt;Hope this helps for your purposes aswell,&lt;BR /&gt;&lt;BR /&gt;regs&lt;BR /&gt;&lt;BR /&gt;Oliver</description>
      <pubDate>Mon, 18 Apr 2005 07:02:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526498#M701353</guid>
      <dc:creator>Oliver Schmitz</dc:creator>
      <dc:date>2005-04-18T07:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: about redirect</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526499#M701354</link>
      <description>Yes you can:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;ERROR=""&lt;BR /&gt;&lt;BR /&gt;ls /doesnotexist &amp;gt;$ERROR 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;echo $ERROR&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Apr 2005 07:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/about-redirect/m-p/3526499#M701354</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2005-04-18T07:50:23Z</dc:date>
    </item>
  </channel>
</rss>

