<?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: need help with embedded script within remote shell script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956184#M46692</link>
    <description>Have you looked at something like cfengine.&lt;BR /&gt;You could have it copy and execute the &lt;BR /&gt;script.</description>
    <pubDate>Wed, 01 Feb 2006 10:14:37 GMT</pubDate>
    <dc:creator>Bill Thorsteinson</dc:creator>
    <dc:date>2006-02-01T10:14:37Z</dc:date>
    <item>
      <title>need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956181#M46689</link>
      <description>I have a remote script (rsh) that is going out to multiple locations and doing multiple jobs.  The last thing that it does is copy out a script to the remote location and then execute the script.  This embedded script takes about 1.5 hours to run so I want my main script to copy over this script, execute it but then move on and loop through again, hitting the next location in the list.  Is this possible?</description>
      <pubDate>Tue, 31 Jan 2006 16:52:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956181#M46689</guid>
      <dc:creator>Matt Shaffer_1</dc:creator>
      <dc:date>2006-01-31T16:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956182#M46690</link>
      <description>If you don't need to monitor the output from the remote location you could use&lt;BR /&gt;&lt;BR /&gt;  rsh remotehost "at -f script now"&lt;BR /&gt;&lt;BR /&gt;to start the remote job without waiting.</description>
      <pubDate>Tue, 31 Jan 2006 17:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956182#M46690</guid>
      <dc:creator>David Kiel</dc:creator>
      <dc:date>2006-01-31T17:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956183#M46691</link>
      <description>Hi Matt,&lt;BR /&gt;&lt;BR /&gt;You could start scripts in the background using  the ampersant sign (&amp;amp;). For example:&lt;BR /&gt;&lt;BR /&gt;for i in srv1 srv2 srv3&lt;BR /&gt;do&lt;BR /&gt;rsh ${i} ....  &amp;amp;&lt;BR /&gt;done &lt;BR /&gt;, or for the readability do it with functions:&lt;BR /&gt;&lt;BR /&gt;function remote_script&lt;BR /&gt;{&lt;BR /&gt;#do the things you want to do&lt;BR /&gt;) &lt;BR /&gt;&lt;BR /&gt;for i in srv1 srv2 srv3&lt;BR /&gt;do&lt;BR /&gt;  remote_script &amp;amp;&lt;BR /&gt;done &lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Wed, 01 Feb 2006 02:34:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956183#M46691</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-02-01T02:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956184#M46692</link>
      <description>Have you looked at something like cfengine.&lt;BR /&gt;You could have it copy and execute the &lt;BR /&gt;script.</description>
      <pubDate>Wed, 01 Feb 2006 10:14:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956184#M46692</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2006-02-01T10:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956185#M46693</link>
      <description>I tried the "&amp;amp;" idea before and that does not work.  I think the at -f will work although I haven't done a full blown test yet.</description>
      <pubDate>Wed, 01 Feb 2006 16:48:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956185#M46693</guid>
      <dc:creator>Matt Shaffer_1</dc:creator>
      <dc:date>2006-02-01T16:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956186#M46694</link>
      <description>You try as,&lt;BR /&gt;&lt;BR /&gt;for server in "server1 server2 server3"&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;  remsh -l root ${server} -n "script" 1&amp;gt;&amp;amp;- 2&amp;gt;&amp;amp;- &amp;amp;&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;It will do it. &amp;amp;- is used to close error and output mode. Else it will interact with other shell execution.&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Muthu&lt;BR /&gt;</description>
      <pubDate>Thu, 02 Feb 2006 00:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956186#M46694</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2006-02-02T00:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956187#M46695</link>
      <description>Hi Matt,&lt;BR /&gt;&lt;BR /&gt;I tried the following and it works OK&lt;BR /&gt;&lt;BR /&gt;function rem_dbcheck&lt;BR /&gt;{&lt;BR /&gt;ssh ${i} -n /home/oracle/rene/dbstatus.sh&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;for i in srv1 srv2 srv3 srv4&lt;BR /&gt;do&lt;BR /&gt;  rem_dbcheck 1&amp;gt;/tmp/db.log 2&amp;gt;&amp;amp;1 &amp;amp;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Renarios</description>
      <pubDate>Thu, 02 Feb 2006 03:00:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956187#M46695</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2006-02-02T03:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: need help with embedded script within remote shell script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956188#M46696</link>
      <description>. using &amp;amp; to run it in the background worked.  i'm sure i had my syntax wrong or something.  didn't know much 5 years ago.</description>
      <pubDate>Tue, 30 Nov 2010 20:21:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/need-help-with-embedded-script-within-remote-shell-script/m-p/4956188#M46696</guid>
      <dc:creator>Matt Shaffer_1</dc:creator>
      <dc:date>2010-11-30T20:21:53Z</dc:date>
    </item>
  </channel>
</rss>

