<?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: execute rlogin with local script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657061#M590940</link>
    <description>Hi Cesar,&lt;BR /&gt;&lt;BR /&gt;If the script is not too complicated, you should be able to:&lt;BR /&gt;&lt;BR /&gt;cat script | remsh host "/sbin/sh"&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
    <pubDate>Fri, 01 Feb 2002 13:59:17 GMT</pubDate>
    <dc:creator>Robin Wakefield</dc:creator>
    <dc:date>2002-02-01T13:59:17Z</dc:date>
    <item>
      <title>execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657058#M590937</link>
      <description>&lt;BR /&gt;  Hi. I??ve got many servers (B,C,D,E..) and a script in A server. Are there any way to execute that script from server A to the others?. If I run remsh, It tries to execute the script from the others servers, not from MY A. It would be bothersome to ftp script in all servers...&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Fri, 01 Feb 2002 13:33:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657058#M590937</guid>
      <dc:creator>Cesar Gonzalez_1</dc:creator>
      <dc:date>2002-02-01T13:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657059#M590938</link>
      <description>if you have rights, why not,...&lt;BR /&gt;&lt;BR /&gt;# On server A&lt;BR /&gt;for i in B C D E&lt;BR /&gt;do&lt;BR /&gt;    rcp /tmp/script1 $i:/tmp&lt;BR /&gt;    remsh $i -c "/tmp/script1"&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;If access rights are the other way, instead of an 'rcp', perform a 'remsh -c 'rcp A:/tmp/script1 /tmp''&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian</description>
      <pubDate>Fri, 01 Feb 2002 13:39:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657059#M590938</guid>
      <dc:creator>ian Dennison</dc:creator>
      <dc:date>2002-02-01T13:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657060#M590939</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You could try to share a single directory from A where you save the script and mount this share on all the other machines.&lt;BR /&gt;Then you don't need to ftp the script to the other machines.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2002 13:42:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657060#M590939</guid>
      <dc:creator>Corthouts Carlo</dc:creator>
      <dc:date>2002-02-01T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657061#M590940</link>
      <description>Hi Cesar,&lt;BR /&gt;&lt;BR /&gt;If the script is not too complicated, you should be able to:&lt;BR /&gt;&lt;BR /&gt;cat script | remsh host "/sbin/sh"&lt;BR /&gt;&lt;BR /&gt;Rgds, Robin</description>
      <pubDate>Fri, 01 Feb 2002 13:59:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657061#M590940</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-02-01T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657062#M590941</link>
      <description># On all servers B C D E&lt;BR /&gt;in your home directory create .rhosts with the following entry:&lt;BR /&gt;A username&lt;BR /&gt;&lt;BR /&gt;After this do what listed below:&lt;BR /&gt;&lt;BR /&gt;for i in B C D E &lt;BR /&gt;do &lt;BR /&gt;rcp /tmp/script1 username@$i:/tmp &lt;BR /&gt;remsh $i -l username -n "/tmp/script1" &lt;BR /&gt;&lt;BR /&gt;remsh $i -l username -n " rm /tmp/script1" &lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bye&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2002 14:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657062#M590941</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2002-02-01T14:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657063#M590942</link>
      <description>Thanks guys</description>
      <pubDate>Mon, 04 Feb 2002 14:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657063#M590942</guid>
      <dc:creator>Cesar Gonzalez_1</dc:creator>
      <dc:date>2002-02-04T14:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657064#M590943</link>
      <description>I have a similar question as well. &lt;BR /&gt;&lt;BR /&gt;I have scripts that I run to add and delete printers, directories, etc. I don't rerally want to copy the script onto the other machines, (leaves a lot of junk for me to clean up). Can I execute the script from server A on servers BCD and E without copying it over? I don't really want to NFS mount drives to my servers due to security considerations.&lt;BR /&gt;&lt;BR /&gt;Suggestions?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 08 Feb 2002 12:48:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657064#M590943</guid>
      <dc:creator>Jerry Jaynes</dc:creator>
      <dc:date>2002-02-08T12:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: execute rlogin with local script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657065#M590944</link>
      <description>Jerry,&lt;BR /&gt;&lt;BR /&gt;I don't think you can do this. The essence of the answer to this question was that the Script does have to be on the remote server. &lt;BR /&gt;&lt;BR /&gt;How about creating a 'depot' on all Servers for common scripts? I use '/usr/local/bin' and any scripts I create for one server, I try to rollout to all for future use.&lt;BR /&gt;&lt;BR /&gt;If you really want a clean system with no scripts remaining, federicos answer above gives the perfect solution.&lt;BR /&gt;&lt;BR /&gt;Share and Enjoy! Ian&lt;BR /&gt;&lt;BR /&gt;PS If you post this as a separate question, you can credit people with points for the answers that are given.</description>
      <pubDate>Fri, 08 Feb 2002 12:58:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-rlogin-with-local-script/m-p/2657065#M590944</guid>
      <dc:creator>ian Dennison</dc:creator>
      <dc:date>2002-02-08T12:58:26Z</dc:date>
    </item>
  </channel>
</rss>

