<?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 command on Remote System in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006512#M127553</link>
    <description>As Massimo points out, your best bet is to install and use secure shell.  You can get this precompiled for HP at &lt;A href="http://software.hp.com." target="_blank"&gt;http://software.hp.com.&lt;/A&gt;  Its also available for other Unix platforms, and even M$ platforms for free or very cheap.  It won't be hard to find: Google is your friend.&lt;BR /&gt;Since it appears that all you want to do is script; install secure shell on both (or all systems, then configure it according to the document I've attached.  This will allow you to securely access remote systems, run commands and display/capture data back to the intiating system.&lt;BR /&gt;The only caveat is that the initial connection between systems is slow (in HPux versions prior to 11i).  After the initial connection/handshake is made, it is just as fast as remsh, rlogin, rcp, or any of the others.  &lt;BR /&gt;Just be careful to check permissions and ownerships, as outlined in the document.  It'll work GREAT!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
    <pubDate>Wed, 25 Jun 2003 12:57:30 GMT</pubDate>
    <dc:creator>Chris Vail</dc:creator>
    <dc:date>2003-06-25T12:57:30Z</dc:date>
    <item>
      <title>Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006494#M127535</link>
      <description>Hi Frineds,&lt;BR /&gt;I want to execute command on several remote systems. Without modifying the hosts etc. files, how I can accomplish this? The concern is, the password can not be supplied with the rlogin or rexec command.</description>
      <pubDate>Wed, 25 Jun 2003 04:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006494#M127535</guid>
      <dc:creator>Sanjay Verma</dc:creator>
      <dc:date>2003-06-25T04:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006495#M127536</link>
      <description>Create hosts.equiv or .rhosts on the user's home dir on your remote server, syntax should be : &lt;BR /&gt;&lt;BR /&gt;hostname username &lt;BR /&gt;&lt;BR /&gt;(the hostname is the box on which you issue command, /etc/hosts.equiv isn't used for root). &lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 05:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006495#M127536</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-06-25T05:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006496#M127537</link>
      <description>Hi Twang,&lt;BR /&gt;As indicated I can not modify any files and needs to execute the command without any modification to the files on the target server. Any other alternatives?</description>
      <pubDate>Wed, 25 Jun 2003 05:16:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006496#M127537</guid>
      <dc:creator>Sanjay Verma</dc:creator>
      <dc:date>2003-06-25T05:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006497#M127538</link>
      <description>That's easy,for example,&lt;BR /&gt;root in hosta want to execute command on hostb, you can edit the .rhosts in hostb:&lt;BR /&gt;hosta root&lt;BR /&gt;Now things are done!!!&lt;BR /&gt;&lt;BR /&gt;-ux&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 05:20:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006497#M127538</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-06-25T05:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006498#M127539</link>
      <description>Hi hp-ux, I want to execute the command as a normal user + don't want to modify any files even .rhots.</description>
      <pubDate>Wed, 25 Jun 2003 05:23:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006498#M127539</guid>
      <dc:creator>Sanjay Verma</dc:creator>
      <dc:date>2003-06-25T05:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006499#M127540</link>
      <description>Hi hp-ux, I want to execute the command as a normal user + don't want to modify any files even .rhosts.</description>
      <pubDate>Wed, 25 Jun 2003 05:23:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006499#M127540</guid>
      <dc:creator>Sanjay Verma</dc:creator>
      <dc:date>2003-06-25T05:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006500#M127541</link>
      <description>I think it is impossible if the "~/.rhosts or /etc/hosts.equiv" is not set correctly!&lt;BR /&gt;Or you must offer the password when use r* command!&lt;BR /&gt;Of course, a hacker can ......&lt;BR /&gt;&lt;BR /&gt;:p&lt;BR /&gt;-ux</description>
      <pubDate>Wed, 25 Jun 2003 05:29:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006500#M127541</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-06-25T05:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006501#M127542</link>
      <description>I think you need to either set up a .rhosts in the users home dir or set up /etc/hosts.equiv.&lt;BR /&gt;&lt;BR /&gt;See the man pages for the following: &lt;BR /&gt;# man 4 hosts.equiv &lt;BR /&gt;# man rcp  &lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 05:31:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006501#M127542</guid>
      <dc:creator>twang</dc:creator>
      <dc:date>2003-06-25T05:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006502#M127543</link>
      <description>Trust me there there is no other way to run a remote command on other systems.&lt;BR /&gt;But if you like playing with C and libraries of C you can by using rcmd() function but this should be run as root.&lt;BR /&gt;But hide this program if you write its very dangerous...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rajeev</description>
      <pubDate>Wed, 25 Jun 2003 05:33:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006502#M127543</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-06-25T05:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006503#M127544</link>
      <description>Hi hp-ux / friends, let me explain you this. The user "sanjay" can access the server "hpux" from server "sun" properly. Now, "sanjay" wants to execute certain commands from within a script on the "hpux" server from "sun" sevrer. How he can do this?</description>
      <pubDate>Wed, 25 Jun 2003 05:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006503#M127544</guid>
      <dc:creator>Sanjay Verma</dc:creator>
      <dc:date>2003-06-25T05:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006504#M127545</link>
      <description>[Hi hp-ux / friends, let me explain you this. The user "sanjay" can access the server "hpux" from server "sun" properly. Now, "sanjay" wants to execute certain commands from within a script on the "hpux" server from "sun" sevrer. How he can do this?]&lt;BR /&gt;Hi,&lt;BR /&gt;1.What do you mean "properly"? Can you rlogin from SUN to HP-UX without a password?&lt;BR /&gt;2.If so, you can do nothing ,just use&lt;BR /&gt;#rexec HOST_OF_HP-UX command-in-hp-ux&lt;BR /&gt;&lt;BR /&gt;Have a good day!&lt;BR /&gt;-ux&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 05:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006504#M127545</guid>
      <dc:creator>Fragon</dc:creator>
      <dc:date>2003-06-25T05:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006505#M127546</link>
      <description>Hi Sanjay&lt;BR /&gt;&lt;BR /&gt;I presume you are looking to use the rcp or remsh commands??&lt;BR /&gt;When you say access, I presume you mean you can telnet or ssh to from hpux to sun server??&lt;BR /&gt;&lt;BR /&gt;Remotely executing commands (remsh) relies on having either a .rhosts or /etc/hosts.equiv file.&lt;BR /&gt;As far as I am aware there is no way around this.&lt;BR /&gt;&lt;BR /&gt;If you explain what you are trying to achieve i.e. what commands you are trying to run or what files you want to copy, then someone may be able to offer a solution.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 05:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006505#M127546</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-06-25T05:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006506#M127547</link>
      <description>Hi Con/hp-ux/Shukla,&lt;BR /&gt;Sorry to confuse with "Sun". This is not Sun Solaris but the host name "sun". Let me further explain this:&lt;BR /&gt;User1&lt;BR /&gt;Host1&lt;BR /&gt;Host2&lt;BR /&gt;User1 wants to execute some commands e.g., #find /home/sanjay -size 10c -exec rm {} \; on host2 using a script created on host1. &lt;BR /&gt;Con is right is some extent but I want to achieve this without modifying and .rhosts file etc.&lt;BR /&gt;Hope this gives you a much clear picture.</description>
      <pubDate>Wed, 25 Jun 2003 05:56:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006506#M127547</guid>
      <dc:creator>Sanjay Verma</dc:creator>
      <dc:date>2003-06-25T05:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006507#M127548</link>
      <description>Hi (again).&lt;BR /&gt;&lt;BR /&gt;Sorry if I'm missing your point.&lt;BR /&gt;&lt;BR /&gt;If you want to execute that find command from host1 on host2 then you need to use the remsh command.  This relies on having a .rhosts or /etc/hosts.equiv.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Con&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 06:16:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006507#M127548</guid>
      <dc:creator>Con O'Kelly</dc:creator>
      <dc:date>2003-06-25T06:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006508#M127549</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Script on host1 must be available first on host2. Then, if you don't want to have a .rhosts file, use a rexec command, but you will be prompted for the password on host2 before each execution.&lt;BR /&gt;&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 25 Jun 2003 06:19:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006508#M127549</guid>
      <dc:creator>Jean-Louis Phelix</dc:creator>
      <dc:date>2003-06-25T06:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006509#M127550</link>
      <description>there is no way w/o modifing ~/.rhosts or /etc/hosts.equiv files or if you use "rexec" then you have to give the password.</description>
      <pubDate>Wed, 25 Jun 2003 10:48:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006509#M127550</guid>
      <dc:creator>yogesh_4</dc:creator>
      <dc:date>2003-06-25T10:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006510#M127551</link>
      <description>You should be able to script this with expect &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Tcl/expect-5.38/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Tcl/expect-5.38/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(depends on tcltk being installed as well).&lt;BR /&gt;&lt;BR /&gt;You can have expect send the password to rexec when prompted.&lt;BR /&gt;&lt;BR /&gt;Be aware that all of these approaches have security issues; mainly, your password is embedded in a script and sent in clear-text over the network.</description>
      <pubDate>Wed, 25 Jun 2003 12:33:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006510#M127551</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-06-25T12:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006511#M127552</link>
      <description>Hi,&lt;BR /&gt;you can think of using ssh or openssh.&lt;BR /&gt;&lt;BR /&gt;It let's you configure equivalence of users, without modifying existing file.&lt;BR /&gt;&lt;BR /&gt;You will have to install ssh on each hosts, and configure it, but your .rhosts will not be modified.&lt;BR /&gt;&lt;BR /&gt;Otherwise expected seems the best choiche, as pointed out.&lt;BR /&gt;&lt;BR /&gt;  HTH,&lt;BR /&gt;    Massimo&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Jun 2003 12:49:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006511#M127552</guid>
      <dc:creator>Massimo Bianchi</dc:creator>
      <dc:date>2003-06-25T12:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006512#M127553</link>
      <description>As Massimo points out, your best bet is to install and use secure shell.  You can get this precompiled for HP at &lt;A href="http://software.hp.com." target="_blank"&gt;http://software.hp.com.&lt;/A&gt;  Its also available for other Unix platforms, and even M$ platforms for free or very cheap.  It won't be hard to find: Google is your friend.&lt;BR /&gt;Since it appears that all you want to do is script; install secure shell on both (or all systems, then configure it according to the document I've attached.  This will allow you to securely access remote systems, run commands and display/capture data back to the intiating system.&lt;BR /&gt;The only caveat is that the initial connection between systems is slow (in HPux versions prior to 11i).  After the initial connection/handshake is made, it is just as fast as remsh, rlogin, rcp, or any of the others.  &lt;BR /&gt;Just be careful to check permissions and ownerships, as outlined in the document.  It'll work GREAT!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Chris</description>
      <pubDate>Wed, 25 Jun 2003 12:57:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006512#M127553</guid>
      <dc:creator>Chris Vail</dc:creator>
      <dc:date>2003-06-25T12:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Executing command on Remote System</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006513#M127554</link>
      <description>Hello!&lt;BR /&gt;&lt;BR /&gt;If you will use the ssh you can execute&lt;BR /&gt;the ssh command (not remsh) and if you&lt;BR /&gt;not alowed user connect automaticly it will&lt;BR /&gt;ask for password and if it's good execute the command.&lt;BR /&gt;&lt;BR /&gt;So start using ssh.&lt;BR /&gt;&lt;BR /&gt;Caesar</description>
      <pubDate>Wed, 25 Jun 2003 18:27:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/executing-command-on-remote-system/m-p/3006513#M127554</guid>
      <dc:creator>Caesar_3</dc:creator>
      <dc:date>2003-06-25T18:27:44Z</dc:date>
    </item>
  </channel>
</rss>

