<?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 How to send output during ssh command execution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-output-during-ssh-command-execution/m-p/6820237#M494794</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a ksh function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function GenSnapshot {&lt;BR /&gt;&lt;BR /&gt;spout=`ssh -T -i ~/.ssh/delphix_key cs.delphix.ds@dlx37cti1 &amp;lt;&amp;lt;- EOF&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;database&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;select ${DELPHIX_OBJECT}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sync&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;commit&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;exit&lt;BR /&gt;EOF`&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not mastering execution time an this is normal (Sometime it tooks few seconds, sometime few hours). How to encapsulate the ssh call to provide an output every X minutes saying something like "Executing...."&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Best regards, Den.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Dec 2015 10:42:08 GMT</pubDate>
    <dc:creator>SwissKnife</dc:creator>
    <dc:date>2015-12-22T10:42:08Z</dc:date>
    <item>
      <title>How to send output during ssh command execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-output-during-ssh-command-execution/m-p/6820237#M494794</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a ksh function:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function GenSnapshot {&lt;BR /&gt;&lt;BR /&gt;spout=`ssh -T -i ~/.ssh/delphix_key cs.delphix.ds@dlx37cti1 &amp;lt;&amp;lt;- EOF&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;database&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;select ${DELPHIX_OBJECT}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;sync&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;commit&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;exit&lt;BR /&gt;EOF`&lt;BR /&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not mastering execution time an this is normal (Sometime it tooks few seconds, sometime few hours). How to encapsulate the ssh call to provide an output every X minutes saying something like "Executing...."&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Best regards, Den.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 10:42:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-output-during-ssh-command-execution/m-p/6820237#M494794</guid>
      <dc:creator>SwissKnife</dc:creator>
      <dc:date>2015-12-22T10:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to send output during ssh command execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-output-during-ssh-command-execution/m-p/6820314#M494795</link>
      <description>&lt;P&gt;You could put it in the background and then every N seconds check to see if the process is still alive.&lt;/P&gt;&lt;P&gt;And when done, copy the redirected output to the screen.&lt;/P&gt;&lt;P&gt;$! is the process of the last background command.&amp;nbsp; Use "kill -0 $PID" to check if alive.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2015 15:48:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-send-output-during-ssh-command-execution/m-p/6820314#M494795</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2015-12-22T15:48:00Z</dc:date>
    </item>
  </channel>
</rss>

