<?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: ssh does not exit in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092648#M751632</link>
    <description>Hi Massimo,&lt;BR /&gt;&lt;BR /&gt;Terrific answer !!!&lt;BR /&gt;This is the solution :&lt;BR /&gt;&amp;gt;&lt;BR /&gt;ssh -f -T server1 "/sbin/init.d/logsurfer newstart"&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;Becomes&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&amp;lt;&lt;BR /&gt;ssh -f -T 2n3 "echo \"/sbin/init.d/logsurfer newstart\" | at now"&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;</description>
    <pubDate>Thu, 16 Oct 2003 01:33:17 GMT</pubDate>
    <dc:creator>David_246</dc:creator>
    <dc:date>2003-10-16T01:33:17Z</dc:date>
    <item>
      <title>ssh does not exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092644#M751628</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script that runs ssh to multiple systems. It does the folowing :&lt;BR /&gt;ssh -f -T server1 "/sbin/init.d/logsurfer newstart"&lt;BR /&gt;&lt;BR /&gt;Running it using the -f option at least the prompt gets back, running it without the -f the prompt does not even show up. You have to press &lt;CTRL&gt; + c to get the prompt back. However in both cases the remote command succeeded.&lt;BR /&gt;Using the -f option only keeps the processes running in the process table.&lt;BR /&gt;&lt;BR /&gt;Adding an exit to the command also does not work, even adding the exit in the script didn't work.&lt;BR /&gt;&lt;BR /&gt;Anyone a suggestion about how to start a process on the other machine and getting a normal exit ?&lt;BR /&gt;I don't like to have many processes running when they already finished their job.&lt;BR /&gt;&lt;BR /&gt;Regs David&lt;/CTRL&gt;</description>
      <pubDate>Tue, 14 Oct 2003 08:45:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092644#M751628</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-10-14T08:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092645#M751629</link>
      <description>ssh ~^Z -f -T server1 "command" &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;backgrounds the ssh.&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt; &lt;BR /&gt;~&amp;amp; backgrounds ssh at logout when waiting for frowarded x11 connections.&lt;BR /&gt; &lt;BR /&gt;I think the first suggestion will work.&lt;BR /&gt; &lt;BR /&gt;You could also simply try normal shell scturctures.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;ssh .... &amp;amp;&lt;BR /&gt; &lt;BR /&gt;SEP</description>
      <pubDate>Tue, 14 Oct 2003 08:48:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092645#M751629</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-10-14T08:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092646#M751630</link>
      <description>Hi SEP,&lt;BR /&gt;&lt;BR /&gt;The problem remains. The process keeps running when using &amp;amp; :&lt;BR /&gt;    root 24092     1  0 15:58:48 ?         0:00 ssh -f -T server1 /sbin/init.d/logsurfer newstart&amp;amp;&lt;BR /&gt;&lt;BR /&gt;Issue-ing user CTRL+Z I get the following error :&lt;BR /&gt;ssh: ~: no address associated with hostname.&lt;BR /&gt;&lt;BR /&gt;I used it pressing &lt;SHIFT&gt; +z and &lt;CTRL&gt; + v &lt;CTRL&gt; +z . Both gave the same error.&lt;BR /&gt;&lt;BR /&gt;Any other ones?&lt;BR /&gt;&lt;BR /&gt;Regs David&lt;/CTRL&gt;&lt;/CTRL&gt;&lt;/SHIFT&gt;</description>
      <pubDate>Tue, 14 Oct 2003 09:01:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092646#M751630</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-10-14T09:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092647#M751631</link>
      <description>/sbin/init.d/logsurfer newstart&lt;BR /&gt;&lt;BR /&gt;recall something: the real problem is that logsurfer keeps the stdin open, and do not really release it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;How to trick:&lt;BR /&gt;&lt;BR /&gt;- use the at command to start the logsurfer&lt;BR /&gt;&lt;BR /&gt;- write a wrapper script that starts in bg the logsurfer&lt;BR /&gt;&lt;BR /&gt;- and so on.....&lt;BR /&gt;&lt;BR /&gt;I used the "at" trick with the listener for oracle and worked well.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;  Massimo&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Oct 2003 09:51:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092647#M751631</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-10-14T09:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092648#M751632</link>
      <description>Hi Massimo,&lt;BR /&gt;&lt;BR /&gt;Terrific answer !!!&lt;BR /&gt;This is the solution :&lt;BR /&gt;&amp;gt;&lt;BR /&gt;ssh -f -T server1 "/sbin/init.d/logsurfer newstart"&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&lt;BR /&gt;Becomes&lt;BR /&gt;&amp;lt;&lt;BR /&gt;&amp;lt;&lt;BR /&gt;ssh -f -T 2n3 "echo \"/sbin/init.d/logsurfer newstart\" | at now"&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;</description>
      <pubDate>Thu, 16 Oct 2003 01:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092648#M751632</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-10-16T01:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: ssh does not exit</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092649#M751633</link>
      <description>hhm,&lt;BR /&gt;&lt;BR /&gt;2n3=server1 :)</description>
      <pubDate>Thu, 16 Oct 2003 01:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ssh-does-not-exit/m-p/3092649#M751633</guid>
      <dc:creator>David_246</dc:creator>
      <dc:date>2003-10-16T01:34:08Z</dc:date>
    </item>
  </channel>
</rss>

