<?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: Spawning a Process in different server in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439803#M357083</link>
    <description>You are running the status command on the remote machine but transferring all that data back to the local machine for grep and awk processing. All remote commands stop at the first pipe or redirection. Change your command to something like this:&lt;BR /&gt; &lt;BR /&gt;ssh $i "/usr/bin/status | awk '/super/{print $7}'" &amp;gt; super_info&lt;BR /&gt; &lt;BR /&gt;Now the poutput of status is processed through awk on the remote machine and only the answer is returned to be redirected to your local file.</description>
    <pubDate>Tue, 16 Jun 2009 12:17:30 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2009-06-16T12:17:30Z</dc:date>
    <item>
      <title>Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439795#M357075</link>
      <description>I am writting a script which generates reports collecting data from many servers.&lt;BR /&gt;&lt;BR /&gt;I am supposed to get data for one of the column of the report by running one (script) command in all the servers but the problem is it takes like 30 second. So when i do &lt;BR /&gt;&lt;BR /&gt;ssh $i /usr/bin/status| grep super|awk '{print $7}' &amp;gt; super_info&lt;BR /&gt;&lt;BR /&gt;it gives me the desired output but it waits for 30 seconds in each server for that script to get completed. &lt;BR /&gt;&lt;BR /&gt;That command/script is present in each server,Is there any way not to wait for that script completion and do other things until that gets completed and gives the data.&lt;BR /&gt;&lt;BR /&gt;I appreciate any help&lt;BR /&gt;thanks in advance&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2009 15:22:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439795#M357075</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-06-15T15:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439796#M357076</link>
      <description>You could put the script in the background.  Or even the ssh.  (You probably want to use "ssh -n".)  If more then one server, you would need different output files.</description>
      <pubDate>Mon, 15 Jun 2009 15:32:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439796#M357076</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-15T15:32:45Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439797#M357077</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;In addition to adding the '-n' switch and running the script in the background as Dennis suggested, do your server a favor and eliminate the useless 'grep' process:&lt;BR /&gt;&lt;BR /&gt;# ssh -n ${i} /usr/bin/status|awk '/super/ {print $7}' &amp;gt; super_info&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 15 Jun 2009 15:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439797#M357077</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-15T15:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439798#M357078</link>
      <description>so how can i run my ssh in background&lt;BR /&gt;&lt;BR /&gt;I tried putting &amp;amp; but it doesnt work &lt;BR /&gt;&lt;BR /&gt;Also, that means there is no other way than running it in background?</description>
      <pubDate>Mon, 15 Jun 2009 16:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439798#M357078</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-06-15T16:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439799#M357079</link>
      <description>&lt;BR /&gt;I have tried .............&lt;BR /&gt;&lt;BR /&gt;# ssh -n ${i} /usr/bin/status|awk '/super/ {print $7}' &amp;gt; super_info&lt;BR /&gt;&lt;BR /&gt;got following error&lt;BR /&gt;&lt;BR /&gt;syntax error The source line is 1.&lt;BR /&gt; The error context is&lt;BR /&gt;                /superdome{print &amp;gt;&amp;gt;&amp;gt;  $7} &amp;lt;&amp;lt;&amp;lt; &lt;BR /&gt; awk: Quitting&lt;BR /&gt; The source line is 1.&lt;BR /&gt;Note: No action specified. Default behavior is display all.&lt;BR /&gt; syntax error The source line is 1.&lt;BR /&gt; The error context is&lt;BR /&gt;                /super{print &amp;gt;&amp;gt;&amp;gt;  $7} &amp;lt;&amp;lt;&amp;lt; &lt;BR /&gt; awk: Quitting&lt;BR /&gt; The source line is 1.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2009 16:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439799#M357079</guid>
      <dc:creator>pareshan</dc:creator>
      <dc:date>2009-06-15T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439800#M357080</link>
      <description>This problem will exist across the board with any remote login using a standard command interpreter like posix, ksh with awk and ssh.  The only way you might speed it up is with perl, which processes much faster.&lt;BR /&gt;&lt;BR /&gt;Some of the other posters suggested copying the script over to each machine for execution and then emailing the report in, this also will speed things up.  As will any minimizing of processing remotely over the network.</description>
      <pubDate>Mon, 15 Jun 2009 16:23:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439800#M357080</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2009-06-15T16:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439801#M357081</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;# i=somehostname&lt;BR /&gt;# ssh -n ${i} /usr/bin/status|awk '/super/ {print $7}' &amp;gt; super_info &amp;amp;&lt;BR /&gt;&lt;BR /&gt;...will run in the background.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 15 Jun 2009 16:24:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439801#M357081</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-06-15T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439802#M357082</link>
      <description>&amp;gt;# ssh -n ${i} /usr/bin/status | awk '/super/ {print $7}' &amp;gt; super_info&lt;BR /&gt;&amp;gt;got following error&lt;BR /&gt;syntax error The source line is 1.&lt;BR /&gt;The error context is&lt;BR /&gt;/superdome{print &amp;gt;&amp;gt;&amp;gt; $7} &amp;lt;&amp;lt;&amp;lt; &lt;BR /&gt;&lt;BR /&gt;This seems to indicate that you used:&lt;BR /&gt;awk '/superdome {print $7}' &amp;gt; super_info&lt;BR /&gt;&lt;BR /&gt;And lost the last "/" in the ERE.</description>
      <pubDate>Tue, 16 Jun 2009 01:43:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439802#M357082</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-06-16T01:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Spawning a Process in different server</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439803#M357083</link>
      <description>You are running the status command on the remote machine but transferring all that data back to the local machine for grep and awk processing. All remote commands stop at the first pipe or redirection. Change your command to something like this:&lt;BR /&gt; &lt;BR /&gt;ssh $i "/usr/bin/status | awk '/super/{print $7}'" &amp;gt; super_info&lt;BR /&gt; &lt;BR /&gt;Now the poutput of status is processed through awk on the remote machine and only the answer is returned to be redirected to your local file.</description>
      <pubDate>Tue, 16 Jun 2009 12:17:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/spawning-a-process-in-different-server/m-p/4439803#M357083</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-06-16T12:17:30Z</dc:date>
    </item>
  </channel>
</rss>

