<?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: remsh not backgrounding with nohup and &amp;quot;&amp;amp;&amp;quot; on  11.0 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402545#M201102</link>
    <description>"man remsh" recommends the following synyax to run a remote cmd that does not wait for the return:&lt;BR /&gt;&lt;BR /&gt; remsh otherhost -n "command 1&amp;gt;&amp;amp;- 2&amp;gt;&amp;amp;- &amp;amp;"&lt;BR /&gt;</description>
    <pubDate>Mon, 18 Oct 2004 12:05:44 GMT</pubDate>
    <dc:creator>Scot Bean</dc:creator>
    <dc:date>2004-10-18T12:05:44Z</dc:date>
    <item>
      <title>remsh not backgrounding with nohup and "&amp;" on  11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402544#M201101</link>
      <description>I have noticed that doing a remsh to HP-UX 11.0&lt;BR /&gt;when trying to spwan off a background process that won't die when you exit. example:&lt;BR /&gt;&lt;BR /&gt;exec nohup &lt;COMMAND&gt; &amp;amp;&lt;BR /&gt;&lt;BR /&gt;That the script waits till the process is done.&lt;BR /&gt;&lt;BR /&gt;This is only when trying to remsh to an HP-UX&lt;BR /&gt;11.0 OS. HP-UX 11i does not have this problem.&lt;BR /&gt;The process is backgrounded and the remsh exits.&lt;BR /&gt;&lt;BR /&gt;Here is a simple example:&lt;BR /&gt;&lt;BR /&gt;Script A:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;# scripta&lt;BR /&gt;remsh $1 ./scriptb&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Script B:&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#scriptb&lt;BR /&gt;exec nohup sleep 10 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Run script A to hp-ux 11.0 and 11i system:&lt;BR /&gt;&lt;BR /&gt;scripta &lt;HP-UX 11.0="" host=""&gt;&lt;BR /&gt;&lt;BR /&gt;scripta &lt;HP-UX 11i="" host=""&gt;&lt;BR /&gt;&lt;BR /&gt;Can someone tell me why this behavior is different between 11.0 and 11i?&lt;BR /&gt;&lt;BR /&gt;I need to be able to remsh into serveral&lt;BR /&gt;systems and run a continual process in the backgrond.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/HP-UX&gt;&lt;/HP-UX&gt;&lt;/COMMAND&gt;</description>
      <pubDate>Mon, 18 Oct 2004 11:59:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402544#M201101</guid>
      <dc:creator>jerry1</dc:creator>
      <dc:date>2004-10-18T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: remsh not backgrounding with nohup and "&amp;" on  11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402545#M201102</link>
      <description>"man remsh" recommends the following synyax to run a remote cmd that does not wait for the return:&lt;BR /&gt;&lt;BR /&gt; remsh otherhost -n "command 1&amp;gt;&amp;amp;- 2&amp;gt;&amp;amp;- &amp;amp;"&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 12:05:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402545#M201102</guid>
      <dc:creator>Scot Bean</dc:creator>
      <dc:date>2004-10-18T12:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: remsh not backgrounding with nohup and "&amp;" on  11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402546#M201103</link>
      <description>Hi Jerry,&lt;BR /&gt;&lt;BR /&gt;Scott got it. Use '-n' option with the command as it redirects input from /dev/null instead of the shell to wait for input from the keyboard.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Oct 2004 13:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402546#M201103</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-18T13:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: remsh not backgrounding with nohup and "&amp;" on  11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402547#M201104</link>
      <description>The described behaviour has been changed several times with patches... on both, 11.00 and 11.11, afaik.&lt;BR /&gt; &lt;BR /&gt;The current behaviour (recent r-commands patches installed) is:&lt;BR /&gt; &lt;BR /&gt;- wait (default)&lt;BR /&gt;- don't wait (if remshd is called wirth new -m option)&lt;BR /&gt; &lt;BR /&gt;So I suggest to simply install recent patches and then use -m to get the desired behaviour.&lt;BR /&gt; &lt;BR /&gt;11.00: PHNE_23003&lt;BR /&gt;11.11: PHNE_30433&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt;Dietmar.</description>
      <pubDate>Wed, 20 Oct 2004 03:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402547#M201104</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2004-10-20T03:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: remsh not backgrounding with nohup and "&amp;" on  11.0</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402548#M201105</link>
      <description>It will be expecting users input to stop the exec nohup sleep 10&amp;amp; on remote node.&lt;BR /&gt;&lt;BR /&gt;You can try as,&lt;BR /&gt;&lt;BR /&gt;remsh &lt;REMOTE-NODE&gt; -n "command 1 1&amp;gt;/tmp/remotelog.log1 2&amp;gt;&amp;amp;1 &amp;amp;; command 2 1&amp;gt;/tmp/remotelog.log2 2&amp;gt;&amp;amp;1 &amp;amp;"&lt;BR /&gt;&lt;BR /&gt;Or change the code of script B as,&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#scriptb&lt;BR /&gt;exec nohup sleep 10 1&amp;gt;/tmp/log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;&lt;BR /&gt;Else simply,&lt;BR /&gt;&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;#scriptb&lt;BR /&gt;exec nohup sleep 10 1&amp;gt;&amp;amp;- 2&amp;gt;&amp;amp;- &amp;amp;&lt;BR /&gt;&lt;BR /&gt;so that it will not expect user input to upon completion of sleep 10 execution.&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;/REMOTE-NODE&gt;</description>
      <pubDate>Wed, 20 Oct 2004 03:43:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-not-backgrounding-with-nohup-and-quot-amp-quot-on-11-0/m-p/3402548#M201105</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-20T03:43:32Z</dc:date>
    </item>
  </channel>
</rss>

