<?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 remote command execution in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855690#M94643</link>
    <description>I need to execute a custom command on a remote machine. remsh seems to be the most likely command but I think I am running into the terminal issue mentioned in the man page. If I telnet to the remote host, everything works fine and I get a formatted output. Is there another command to use? Also a question about the execution environment. When you use remsh for a specific user, does the command run in the environment of that user?</description>
    <pubDate>Mon, 02 Dec 2002 20:57:24 GMT</pubDate>
    <dc:creator>John Carver</dc:creator>
    <dc:date>2002-12-02T20:57:24Z</dc:date>
    <item>
      <title>remote command execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855690#M94643</link>
      <description>I need to execute a custom command on a remote machine. remsh seems to be the most likely command but I think I am running into the terminal issue mentioned in the man page. If I telnet to the remote host, everything works fine and I get a formatted output. Is there another command to use? Also a question about the execution environment. When you use remsh for a specific user, does the command run in the environment of that user?</description>
      <pubDate>Mon, 02 Dec 2002 20:57:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855690#M94643</guid>
      <dc:creator>John Carver</dc:creator>
      <dc:date>2002-12-02T20:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: remote command execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855691#M94644</link>
      <description>It would help to know what you are trying to do remotely.  The environment used by remsh is not the same as the environment on the original machine.  A simple way to show this would be to add a path to an executable to your $PATH on the local machine, then try to run the same command using remsh.  &lt;BR /&gt;I think remsh is usually the way to go.  You must specify absolute paths to non-system commands (I usually specify the complete paths to system commands as well).  If it is output you are not seeing on the screen, maybe you need to re-direct the output to a file.&lt;BR /&gt;Theresa</description>
      <pubDate>Mon, 02 Dec 2002 21:14:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855691#M94644</guid>
      <dc:creator>Theresa Patrie</dc:creator>
      <dc:date>2002-12-02T21:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: remote command execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855692#M94645</link>
      <description>remsh does not login like telnet. Therefore, nothing in /etc/profile or .profile is run so the environment is nothing like a telnet connection.&lt;BR /&gt;&lt;BR /&gt;remsh is typically used as a batch command to gather information or to kick off some process remotely (ie, remsh remote-cpu bdf), but as the man page suggests, it doesn't work for interactive commands like vi. And if the application expects to see a terminal with fancy features, you'll have to export that on the command line something like this:&lt;BR /&gt;&lt;BR /&gt;remsh remote-cpu export TERM=hpterm /path/to/appicaltion optional-parameters...&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Dec 2002 21:47:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855692#M94645</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-12-02T21:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: remote command execution</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855693#M94646</link>
      <description>The ability of this process to run had everything to do with setting up the proper environment. I took the relevant lines from /etc/profile and the users .profile and created a new file to be read before execution.&lt;BR /&gt;I redirected the standard out to /dev/null since the program that will launching this does not need this information. Now the results&lt;BR /&gt;are the same as if the user on the remote machine had run this directly.&lt;BR /&gt;&lt;BR /&gt;remsh nimbus -l poller '. /optim/bin/.remsh_env;/optim/bin/OptimExtract --modules=product &amp;gt; /dev/null'&lt;BR /&gt;&lt;BR /&gt;Thanks to all for pointing me in the right direction.</description>
      <pubDate>Mon, 02 Dec 2002 23:47:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remote-command-execution/m-p/2855693#M94646</guid>
      <dc:creator>John Carver</dc:creator>
      <dc:date>2002-12-02T23:47:51Z</dc:date>
    </item>
  </channel>
</rss>

