<?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 command won't exit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536195#M25995</link>
    <description>Bill,&lt;BR /&gt;&lt;BR /&gt;I've used the '-n' flag, but to no avail.  It does the exact same thing.  Thanks for the help though.</description>
    <pubDate>Mon, 04 Jun 2001 21:37:13 GMT</pubDate>
    <dc:creator>Jeff Patrick</dc:creator>
    <dc:date>2001-06-04T21:37:13Z</dc:date>
    <item>
      <title>remsh command won't exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536192#M25992</link>
      <description>Hello.  I have 2 different commands that I run within a script, that both use remsh to kick off programs on another server.  The exact commands are as follows:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/remsh infpap1 '/usr/bin/su - applprod -c ./start_forms'&lt;BR /&gt;&lt;BR /&gt;and &lt;BR /&gt;&lt;BR /&gt;/usr/bin/remsh infpap1 '/usr/bin/su - oraprod -c ./start_web'&lt;BR /&gt;&lt;BR /&gt;The first one works and exits correctly.  The 2nd one runs the target program properly (exit 0), but never remsh command itself never exits, thus the next part of the script doesn't get run.  A couple notes:  the scripts in each command, 'start_forms' and 'start_web' are identical in format.  Also, I've run these from the command line as well, and gotten the same result.  The 2nd command will show up with 2 processes still out there on a ps listing, and when I kill -9 these processes, I finally get my prompt back (or, when run from within the script, kill -9 will get the rest of the script to then finish properly).  Any ideas?  Thanks in advance for any help.&lt;BR /&gt;&lt;BR /&gt;-Jeff&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Jun 2001 20:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536192#M25992</guid>
      <dc:creator>Jeff Patrick</dc:creator>
      <dc:date>2001-06-04T20:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: remsh command won't exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536193#M25993</link>
      <description>Just one other thing that I wanted to mention...I've used the '-n' flag with remsh, and this hasn't fixed the issue either.  Thanks again.&lt;BR /&gt;&lt;BR /&gt;Jeff</description>
      <pubDate>Mon, 04 Jun 2001 21:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536193#M25993</guid>
      <dc:creator>Jeff Patrick</dc:creator>
      <dc:date>2001-06-04T21:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: remsh command won't exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536194#M25994</link>
      <description>When scripting remsh commands, it is a good idea to use the -n option since your shell is not interactive.</description>
      <pubDate>Mon, 04 Jun 2001 21:09:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536194#M25994</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2001-06-04T21:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: remsh command won't exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536195#M25995</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;I've used the '-n' flag, but to no avail.  It does the exact same thing.  Thanks for the help though.</description>
      <pubDate>Mon, 04 Jun 2001 21:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536195#M25995</guid>
      <dc:creator>Jeff Patrick</dc:creator>
      <dc:date>2001-06-04T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: remsh command won't exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536196#M25996</link>
      <description>What causes the problem is that the Standard output and the standard input of the remsh processes are inherited by any process that it forks.So if you for instance start an oracle db THEN THE REMSH WILL HANG UNTIL THAT CHILD process terminates.&lt;BR /&gt;Try to redirect standard of remsh and the child process to /dev/null and standard out/err to either a log file or /dev/null .&lt;BR /&gt;&lt;BR /&gt;/usr/bin/remsh infpap1 '/usr/bin/su - oraprod -c ./start_web &amp;lt; /dev/null &amp;gt; /tmp/filelog 2&amp;gt;&amp;amp;1' &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2001 05:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remsh-command-won-t-exit/m-p/2536196#M25996</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2001-06-05T05:35:12Z</dc:date>
    </item>
  </channel>
</rss>

