<?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 script on other UNIX machine?? how in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815030#M780533</link>
    <description>thank for help..but by typing rsh 192.168.125.44 I get connected but if I call that in script as U mentioned like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;rsh 192.168.129.85  -n /fileOn/other/machine/script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get Permission denied.&lt;BR /&gt;&lt;BR /&gt;I am new in solaris world..so..please any explanation is very very welcome..:)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 30 Jun 2006 08:18:52 GMT</pubDate>
    <dc:creator>amonamon</dc:creator>
    <dc:date>2006-06-30T08:18:52Z</dc:date>
    <item>
      <title>execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815022#M780525</link>
      <description>Helloo..I was trying to write a script that could execute from my solaris machine script on rel. UNIX ..&lt;BR /&gt;&lt;BR /&gt;how can I use or can I use rlogin or rsh to execute script&lt;BR /&gt;&lt;BR /&gt;script is on: /path/to/script/script&lt;BR /&gt;&lt;BR /&gt;ip address of machine that should be accessed is 192.168.168.5&lt;BR /&gt;&lt;BR /&gt;username: user1 &lt;BR /&gt;pass: userpass&lt;BR /&gt;&lt;BR /&gt;Any help is appretiated...thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Jun 2006 09:00:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815022#M780525</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-06-29T09:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815023#M780526</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;First, you need to establish a 'hosts.equiv' or '.rhosts' file on both servers.  See the manpages for 'hosts.equiv(4)' for this.&lt;BR /&gt;&lt;BR /&gt;You will also want to make sure the '/etc/inetd.conf' has the 'login', 'shell' and 'exec' services enabled.&lt;BR /&gt;&lt;BR /&gt;The manpages for 'remsh(1)' offer additional information for you.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 29 Jun 2006 09:13:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815023#M780526</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-06-29T09:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815024#M780527</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I use .rhosts, it seems easier to setup then hosts.equiv. Make sure that the .rhost is in the home directory of the user.&lt;BR /&gt;&lt;BR /&gt;The man pages for .rhosts is very good and will show you exactly how to set it up.&lt;BR /&gt;&lt;BR /&gt;If you are at all interested in Sarbens Oxly, they kind of frown on this. If you setup your .rhosts completely, you can usually talk them out of it. So make sure that you not only have the system name but also the user name in the .rhosts.&lt;BR /&gt;&lt;BR /&gt;Here is an example of a command&lt;BR /&gt;&lt;BR /&gt;remsh hp1 -n "/sbin/init.d/sendmail stop"&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Thu, 29 Jun 2006 20:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815024#M780527</guid>
      <dc:creator>Timothy P. Jackson</dc:creator>
      <dc:date>2006-06-29T20:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815025#M780528</link>
      <description>well...from one machine I can easy do rsh &lt;IP address=""&gt; but I want to add this to shell script...&lt;BR /&gt;Do I need to edit those files?? &lt;BR /&gt;&lt;BR /&gt;rsh and rlogin work already...I just can not figure how to add those commands to my script?? so it can run automaticly when I start my script...&lt;BR /&gt;&lt;BR /&gt;thanks..&lt;/IP&gt;</description>
      <pubDate>Fri, 30 Jun 2006 00:33:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815025#M780528</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-06-30T00:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815026#M780529</link>
      <description>Easy:&lt;BR /&gt;octant:/home/vbe $ remsh mairan  "date"  &lt;BR /&gt;Fri Jun 30 10:22:23 METDST 2006&lt;BR /&gt;octant:/home/vbe $ &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;All the best&lt;BR /&gt;Victor</description>
      <pubDate>Fri, 30 Jun 2006 03:25:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815026#M780529</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2006-06-30T03:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815027#M780530</link>
      <description>?? I am now confused...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I want in my shell script among other thing to write so that machine can connect to other machine and execute script in other machine...&lt;BR /&gt;&lt;BR /&gt;I can do it in commands..&lt;BR /&gt;&lt;BR /&gt;rlogin IPaddress &lt;BR /&gt;&lt;BR /&gt;then I am asked for pass. and bingo I am on other machine then change dir. and execute script...&lt;BR /&gt;&lt;BR /&gt;But I want it in first machine to have all that in shell script so I just execute script on machine A...machine does login to machine B and execute script on amchine B...of course while I am on machine A..&lt;BR /&gt;&lt;BR /&gt;Please sorry if I confused U but could not figure easyer way to explan U..&lt;BR /&gt;&lt;BR /&gt;Thanks for help..</description>
      <pubDate>Fri, 30 Jun 2006 05:19:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815027#M780530</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-06-30T05:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815028#M780531</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;the script needs to be accessible on hostB when you execute it:&lt;BR /&gt;In this script fragment called from your sun&lt;BR /&gt;...&lt;BR /&gt;thishost=sun&lt;BR /&gt;hphost=hp&lt;BR /&gt;rsh $hphost /path/to/script/script&lt;BR /&gt;echo fini on $hphost&lt;BR /&gt;...&lt;BR /&gt;the pathname '/path/to/script/script' gets resolved on $hphost.&lt;BR /&gt;&lt;BR /&gt;If this is not the case, you'll have to transfer this file to $hphost first and then call the requested interpreter (e.g. perl, ksh):&lt;BR /&gt;...&lt;BR /&gt;thishost=sun&lt;BR /&gt;rcp /path/to/script/script $hphost:/tmp&lt;BR /&gt;rsh $hphost 'ksh /tmp/script'&lt;BR /&gt;echo fini on $hphost&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Fri, 30 Jun 2006 06:07:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815028#M780531</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-30T06:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815029#M780532</link>
      <description>amonamon,&lt;BR /&gt;&lt;BR /&gt;From 'man remsh':&lt;BR /&gt;&lt;BR /&gt;The remote account name used is the same as your local account name, unless you specify a different remote name with the -l option. In addition, the remote host account name must also conform to other rules which differ depending upon whether the remote host is operating in a Kerberos V5 Network Authentication, i.e., secure environment or not. In a non-secure, or traditional environment, the remote account name must be equivalent to the originating account; no provision is made for specifying a password with a command. For more details about equivalent hosts and how to specify them, see hosts.equiv(4). The files inspected by remshd on the remote host are /etc/hosts.equiv and $HOME/.rhosts (see remshd(1M)).&lt;BR /&gt;&lt;BR /&gt;So you should not be prompted for a password when you 'rlogin' or 'rsh'.  If you are, ~/.rhosts is not configured correctly and/or you are not logging in as the proper user.  You must fix this, as "no provision is made for specifying a password with a command".  To log in as a different remote user:&lt;BR /&gt;&lt;BR /&gt;# rsh &lt;HOST&gt; -l &lt;USERNAME&gt; -n &lt;COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;So in your script, you would put:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;rsh hpux_server -l user1 -n /scripts/script_to_run.sh&lt;BR /&gt;echo "Done."&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Note that '/scripts/script_to_run.sh' is on the remote server.&lt;BR /&gt;&lt;BR /&gt;PCS&lt;/COMMAND&gt;&lt;/USERNAME&gt;&lt;/HOST&gt;</description>
      <pubDate>Fri, 30 Jun 2006 07:26:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815029#M780532</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-06-30T07:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815030#M780533</link>
      <description>thank for help..but by typing rsh 192.168.125.44 I get connected but if I call that in script as U mentioned like this:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;rsh 192.168.129.85  -n /fileOn/other/machine/script&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I get Permission denied.&lt;BR /&gt;&lt;BR /&gt;I am new in solaris world..so..please any explanation is very very welcome..:)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jun 2006 08:18:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815030#M780533</guid>
      <dc:creator>amonamon</dc:creator>
      <dc:date>2006-06-30T08:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815031#M780534</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you MUST have passwordless connections from hostA to hostB for a successful call of&lt;BR /&gt;&lt;BR /&gt;rsh hostB 'command' (on HP-UX read: remsh ...)&lt;BR /&gt;&lt;BR /&gt;There is no difference there between SUN, HP, ...&lt;BR /&gt;&lt;BR /&gt;When you have setup this - do like the other collegues in the forum told - this will succeed.&lt;BR /&gt;&lt;BR /&gt;If you want to have interactive entering a psssword with remoute command execution, use 'ssh'.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jun 2006 09:17:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815031#M780534</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-30T09:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815032#M780535</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you MUST have passwordless connections from hostA to hostB for a successful call of&lt;BR /&gt;&lt;BR /&gt;rsh hostB 'command' (on HP-UX read: remsh ...)&lt;BR /&gt;&lt;BR /&gt;There is no difference there between SUN, HP, ...&lt;BR /&gt;&lt;BR /&gt;When you have setup this - do like the other collegues in the forum told - this will succeed.&lt;BR /&gt;&lt;BR /&gt;If you want to have interactive entering a password with remote command execution, use 'ssh'.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jun 2006 09:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815032#M780535</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-30T09:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815033#M780536</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;you MUST have setup passwordless connections from hostA to hostB for a successful call of&lt;BR /&gt;&lt;BR /&gt;rsh hostB 'command' (on HP-UX read: remsh ...)&lt;BR /&gt;&lt;BR /&gt;There is no difference there between SUN, HP, ...&lt;BR /&gt;&lt;BR /&gt;When you have setup that - do it like the other collegues in the forum told you - this call will succeed.&lt;BR /&gt;&lt;BR /&gt;If you want to have interactive entering a password with remote command execution, use 'ssh'.&lt;BR /&gt;&lt;BR /&gt;mfG Peter&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Jun 2006 09:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815033#M780536</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-30T09:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: execute script on other UNIX machine?? how</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815034#M780537</link>
      <description>Sorry for posting multiple - I hate Server error 500 .</description>
      <pubDate>Fri, 30 Jun 2006 09:32:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/execute-script-on-other-unix-machine-how/m-p/3815034#M780537</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2006-06-30T09:32:38Z</dc:date>
    </item>
  </channel>
</rss>

