<?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: What does &amp;amp;- mean? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706862#M59520</link>
    <description>test2</description>
    <pubDate>Fri, 23 May 2003 02:32:05 GMT</pubDate>
    <dc:creator>zhaogui</dc:creator>
    <dc:date>2003-05-23T02:32:05Z</dc:date>
    <item>
      <title>What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706848#M59506</link>
      <description>Hi,&lt;BR /&gt;Recently I saw a command line,&lt;BR /&gt; remsh remotesp  /tmp/test1.sh 2&amp;gt;&amp;amp;- \;/tmp/test2.sh &amp;gt; logfile&lt;BR /&gt; can anybody tell me why use "&amp;amp;-" and "\;" here?&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Apr 2002 08:38:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706848#M59506</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2002-04-19T08:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706849#M59507</link>
      <description>Seems to me that the standard error is being suppressed by the 2&amp;gt;&amp;amp;-&lt;BR /&gt;&lt;BR /&gt;Form the man page of sh-posix(1):&lt;BR /&gt; &amp;gt;&amp;amp;-            The standard output is closed.</description>
      <pubDate>Fri, 19 Apr 2002 08:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706849#M59507</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-19T08:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706850#M59508</link>
      <description>From man sh-posix:&lt;BR /&gt;&amp;gt;&amp;amp;-  The standard output is closed.&lt;BR /&gt;&lt;BR /&gt;\; rest of the line is still part of the remsh command and not a new command of the same shell.&lt;BR /&gt;&lt;BR /&gt;Hartmut</description>
      <pubDate>Fri, 19 Apr 2002 08:46:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706850#M59508</guid>
      <dc:creator>Hartmut Lang</dc:creator>
      <dc:date>2002-04-19T08:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706851#M59509</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;0 is the file descriptor for stdin (standard input)&lt;BR /&gt;1 is the file descriptor for stdout (standard output)&lt;BR /&gt;2 is the file descriptor for stderr (standard error)&lt;BR /&gt;&lt;BR /&gt;2&amp;gt;&amp;amp;1 means redirect stderr to stdout so that all your errors will be redirected to the standard output of your current tty.&lt;BR /&gt;&lt;BR /&gt;&amp;amp;- with &amp;gt; redirects the output be it from stdout or stderr to null ("/dev/null") so that nothing is displayed on your current tty.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;amp;- or 1&amp;gt;&amp;amp;- redirects the stdout to null.&lt;BR /&gt;2&amp;gt;&amp;amp;- redirects the stderr to null.&lt;BR /&gt;&lt;BR /&gt;\; is to dereference the ; symbol so that it will not be interpreted by the shell as a separator between two different command lines. This ensures that ; is treated as part of the command line.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 19 Apr 2002 08:51:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706851#M59509</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-19T08:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706852#M59510</link>
      <description>Can I replace &amp;amp;- with &amp;amp;1?  How can I generate logfile on remote machine?&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Apr 2002 08:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706852#M59510</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2002-04-19T08:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706853#M59511</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;In general, if you replace &amp;amp;- with &amp;amp;1, then your stderr will be redirected to your stdout which is subsequent redirected to your logfile in your command via &amp;gt;.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Fri, 19 Apr 2002 08:57:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706853#M59511</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-19T08:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706854#M59512</link>
      <description>After running this command, I got all the output in local logfile. Even after I changed &amp;amp;- to &amp;amp;1, I also got the same result, why?  &lt;BR /&gt;How can I create logfile on remote server?&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Apr 2002 09:01:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706854#M59512</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2002-04-19T09:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706855#M59513</link>
      <description>cmd &amp;gt; logfile&lt;BR /&gt;will create the logfile on your local host.&lt;BR /&gt;To create it on the remote machine, use cmd "&amp;gt;" logfile.</description>
      <pubDate>Fri, 19 Apr 2002 09:06:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706855#M59513</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-19T09:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706856#M59514</link>
      <description>See this link as well:&lt;BR /&gt;&lt;A href="http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html" target="_blank"&gt;http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x316efd3f91d3d5118ff40090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Fri, 19 Apr 2002 09:09:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706856#M59514</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-19T09:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706857#M59515</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the &amp;gt;&amp;amp;2- just closes stderr.&lt;BR /&gt;the \; has the effect, that the following commend will be executed remotely. If you ommnit the \ only the first command will be executed remotely.&lt;BR /&gt;&lt;BR /&gt;To get the logfile on the remote machine you only have to escape with \ the redirection:&lt;BR /&gt;&lt;BR /&gt;remsh remotesp /tmp/test1.sh 2&amp;gt;&amp;amp;- \;/tmp/test2.sh \&amp;gt; /tmp/logfile&lt;BR /&gt;&lt;BR /&gt;I recommend to use an absolute path for the logfile to find it easier.&lt;BR /&gt;&lt;BR /&gt;The alternatve is to put all things that has to be remotely in quotes:&lt;BR /&gt;&lt;BR /&gt;remsh remotesp "/tmp/test1.sh 2&amp;gt;&amp;amp; ; /tmp/test2.sh &amp;gt; /tmp/logfile" &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards &lt;BR /&gt;</description>
      <pubDate>Fri, 19 Apr 2002 10:05:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706857#M59515</guid>
      <dc:creator>Andreas Voss</dc:creator>
      <dc:date>2002-04-19T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706858#M59516</link>
      <description>some more scripts</description>
      <pubDate>Thu, 22 May 2003 09:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706858#M59516</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-22T09:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706859#M59517</link>
      <description>one more</description>
      <pubDate>Thu, 22 May 2003 09:09:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706859#M59517</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-22T09:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706860#M59518</link>
      <description>last one</description>
      <pubDate>Thu, 22 May 2003 09:11:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706860#M59518</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-22T09:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706861#M59519</link>
      <description>test1</description>
      <pubDate>Fri, 23 May 2003 02:19:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706861#M59519</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-23T02:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706862#M59520</link>
      <description>test2</description>
      <pubDate>Fri, 23 May 2003 02:32:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706862#M59520</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-23T02:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706863#M59521</link>
      <description>test3</description>
      <pubDate>Fri, 23 May 2003 02:56:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706863#M59521</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-23T02:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706864#M59522</link>
      <description>test4</description>
      <pubDate>Fri, 23 May 2003 03:00:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706864#M59522</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-23T03:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706865#M59523</link>
      <description>It seems ITRC can not accept zip, tar, gz format.  It can only accept .doc or .txt</description>
      <pubDate>Fri, 23 May 2003 03:07:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706865#M59523</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-23T03:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706866#M59524</link>
      <description>test2 --binhex</description>
      <pubDate>Fri, 23 May 2003 06:16:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706866#M59524</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-23T06:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: What does &amp;- mean?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706867#M59525</link>
      <description>k12 --binhex</description>
      <pubDate>Fri, 23 May 2003 06:40:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/what-does-amp-mean/m-p/2706867#M59525</guid>
      <dc:creator>zhaogui</dc:creator>
      <dc:date>2003-05-23T06:40:58Z</dc:date>
    </item>
  </channel>
</rss>

