<?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: executing a function by remsh in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026084#M89457</link>
    <description>also you can use more security with&lt;BR /&gt;openssh - the scp&lt;BR /&gt;srs - the srsclient&lt;BR /&gt;&lt;A href="http://www-it.desy.de/support/help/uco_documentation/sshhowto.html" target="_blank"&gt;http://www-it.desy.de/support/help/uco_documentation/sshhowto.html&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Jul 2003 14:19:14 GMT</pubDate>
    <dc:creator>Jairo Campana</dc:creator>
    <dc:date>2003-07-18T14:19:14Z</dc:date>
    <item>
      <title>executing a function by remsh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026079#M89452</link>
      <description>hi all,&lt;BR /&gt;i have the following question: there is a script i wrote and within it there's a function defined. i'd like this function to be executed on remote host using 'remsh' command. is this possible? do i need to apply a special -option while doing 'remsh'? (the function mentioned is supposed to read folder names within a certain directory, then 'read' output is stored as variable).&lt;BR /&gt;thank you in advance.</description>
      <pubDate>Thu, 17 Jul 2003 06:27:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026079#M89452</guid>
      <dc:creator>Maciej Szewczykowski</dc:creator>
      <dc:date>2003-07-17T06:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: executing a function by remsh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026080#M89453</link>
      <description>I think you should write a script containing the function code, copy this script to the remote machine and run it using remsh.&lt;BR /&gt;&lt;BR /&gt;Alternatively (but I'm not so sure here), you can use remsh to run the shell interpreter (/bin/sh or whatever it is) and send the function/script code to interpreter's stdin. I think that remsh could pass its own stdin to the stdin of the command executed on the remote machine; but exactly I don't know how.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;Claudio&lt;BR /&gt;&lt;BR /&gt;P.S.: aren't you speaking about HPUX? I haven't found remsh in my linux box...</description>
      <pubDate>Thu, 17 Jul 2003 08:58:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026080#M89453</guid>
      <dc:creator>Claudio Cilloni</dc:creator>
      <dc:date>2003-07-17T08:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: executing a function by remsh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026081#M89454</link>
      <description>try something like this:&lt;BR /&gt;&lt;BR /&gt;script1:&lt;BR /&gt;...&lt;BR /&gt;STATUS=`remsh REMOTE_HOST "script2"`&lt;BR /&gt;if [ $STATUS -eq 0 ]&lt;BR /&gt;then&lt;BR /&gt; echo "Success"&lt;BR /&gt;else&lt;BR /&gt; echo "Fail"&lt;BR /&gt;fi&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;script2:&lt;BR /&gt;...&lt;BR /&gt;if [ $? -eq 0 ]  # or something else to give back the exit-status of script2&lt;BR /&gt;then&lt;BR /&gt; echo 0&lt;BR /&gt;else&lt;BR /&gt; echo 1&lt;BR /&gt;fi&lt;BR /&gt;exit&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sergejs</description>
      <pubDate>Thu, 17 Jul 2003 10:38:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026081#M89454</guid>
      <dc:creator>Sergejs Svitnevs</dc:creator>
      <dc:date>2003-07-17T10:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: executing a function by remsh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026082#M89455</link>
      <description>And, adding to Claudio's tip, remsh in Linux box is rsh command (man rsh), but ssh is much prefered most of the time as rsh is said to be weak as far as security is concerned...&lt;BR /&gt;&lt;BR /&gt;J</description>
      <pubDate>Thu, 17 Jul 2003 10:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026082#M89455</guid>
      <dc:creator>Jerome Henry</dc:creator>
      <dc:date>2003-07-17T10:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: executing a function by remsh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026083#M89456</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;You need that this script will be on the other&lt;BR /&gt;machine so you can before rsh made the rcp&lt;BR /&gt;for the script and then made rsh&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Thu, 17 Jul 2003 20:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026083#M89456</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-07-17T20:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: executing a function by remsh</title>
      <link>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026084#M89457</link>
      <description>also you can use more security with&lt;BR /&gt;openssh - the scp&lt;BR /&gt;srs - the srsclient&lt;BR /&gt;&lt;A href="http://www-it.desy.de/support/help/uco_documentation/sshhowto.html" target="_blank"&gt;http://www-it.desy.de/support/help/uco_documentation/sshhowto.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jul 2003 14:19:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/executing-a-function-by-remsh/m-p/3026084#M89457</guid>
      <dc:creator>Jairo Campana</dc:creator>
      <dc:date>2003-07-18T14:19:14Z</dc:date>
    </item>
  </channel>
</rss>

