<?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: Using remsh in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825464#M940557</link>
    <description>&lt;BR /&gt;This should work:&lt;BR /&gt;&lt;BR /&gt;remsh remotehost 'perl -MSys::Hostname -le "print q(hello from: ), hostname;"'&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 14 Oct 2002 16:54:26 GMT</pubDate>
    <dc:creator>Jordan Bean</dc:creator>
    <dc:date>2002-10-14T16:54:26Z</dc:date>
    <item>
      <title>Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825463#M940556</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm trying this command with remsh:&lt;BR /&gt;&lt;BR /&gt;perl -MSys::Hostname -le 'print q(hello from: ), hostname'&lt;BR /&gt;&lt;BR /&gt;I am running in all sorts of quoting problems.&lt;BR /&gt;&lt;BR /&gt;Can this be done?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Leslie&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 16:19:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825463#M940556</guid>
      <dc:creator>Leslie Chaim</dc:creator>
      <dc:date>2002-10-14T16:19:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825464#M940557</link>
      <description>&lt;BR /&gt;This should work:&lt;BR /&gt;&lt;BR /&gt;remsh remotehost 'perl -MSys::Hostname -le "print q(hello from: ), hostname;"'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 16:54:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825464#M940557</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-10-14T16:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825465#M940558</link>
      <description>Thanks Jordan,&lt;BR /&gt;&lt;BR /&gt;You said *should*. Well it doesn't:)&lt;BR /&gt;&lt;BR /&gt;I get this:&lt;BR /&gt;Unrecognized switch: -MSys::Hostname.&lt;BR /&gt;&lt;BR /&gt;I tried many ways, and so far I cannot get it.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Leslie</description>
      <pubDate>Mon, 14 Oct 2002 17:21:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825465#M940558</guid>
      <dc:creator>Leslie Chaim</dc:creator>
      <dc:date>2002-10-14T17:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825466#M940559</link>
      <description>same version of perl on each server?  Does the command you are entering work if you enter it from a shell on the server?  Should also enter the command full path:&lt;BR /&gt;&lt;BR /&gt;/usr/bin/perl or /opt/perl5/bin/perl... whatever the environment needs.&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 14 Oct 2002 17:42:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825466#M940559</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-14T17:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825467#M940560</link>
      <description>Hi Leslie,&lt;BR /&gt;&lt;BR /&gt;I ran Jordan's example here and it worked for me.  Can you run the perl command line successfully on the remote host (as a standalone command)?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 17:47:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825467#M940560</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-10-14T17:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825468#M940561</link>
      <description>&lt;BR /&gt;PERL4 doesn't recognize the -M switch. Try this:&lt;BR /&gt;&lt;BR /&gt;remsh remotehost 'whence perl'&lt;BR /&gt;&lt;BR /&gt;If it returns /usr/contrib/bin/perl, then you need to do any of these:&lt;BR /&gt;&lt;BR /&gt;1. Explicitly specify the path to PERL5 in the remsh invocation.&lt;BR /&gt;&lt;BR /&gt;remsh remotehost '/opt/perl5/bin/perl -M...'&lt;BR /&gt;&lt;BR /&gt;2. Adjust the default PATH in /etc/PATH so that /opt/perl/bin is before /usr/contrib/bin on the remote host.&lt;BR /&gt;&lt;BR /&gt;3. Adjust the PATH via .profile on the remote host.&lt;BR /&gt;&lt;BR /&gt;4. Rename /usr/crontrib/bin/perl to /usr/contrib/bin/perl4 and avoid ever using it again.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 18:00:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825468#M940561</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-10-14T18:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825469#M940562</link>
      <description>OK so I did my homework:)&lt;BR /&gt;&lt;BR /&gt;I do not have the same perl version on each server. However, I don't think it really makes a different from what I am looking for now.&lt;BR /&gt;&lt;BR /&gt;It turns out that the problem PATH related as mentioned by John and by Jordan.&lt;BR /&gt;&lt;BR /&gt;Here is my final command which I ran.&lt;BR /&gt;remsh $sys '/usr/local/bin/perl -MSys::Hostname -le "print q(hello from: ), hostname;"'&lt;BR /&gt;&lt;BR /&gt;I ran this from locally from ALL servers and they all work fine.&lt;BR /&gt;/usr/local/bin/perl -MSys::Hostname -le "print q(hello from: ), hostname;"&lt;BR /&gt;&lt;BR /&gt;Since I have different versions, some servers came back with this error, which is clearly perl realated.&lt;BR /&gt;Operator or semicolon missing before &amp;amp;L at (eval 17) line 1.&lt;BR /&gt;Ambiguous use of &amp;amp; resolved as operator &amp;amp; at (eval 17) line 1.&lt;BR /&gt;&lt;BR /&gt;However, when using remsh some servers gave me this error:&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /hpx/work/ee/8.1.7.3/hpx32/src_1221/lib//libwtc8.sl&lt;BR /&gt;/usr/lib/dld.sl: Permission denied&lt;BR /&gt;&lt;BR /&gt;Again, the command when run locally runs fine.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Leslie</description>
      <pubDate>Mon, 14 Oct 2002 18:38:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825469#M940562</guid>
      <dc:creator>Leslie Chaim</dc:creator>
      <dc:date>2002-10-14T18:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825470#M940563</link>
      <description>sounds like you may have your servers at different patch levels?  Check the library patches on the servers and see if some (the ones with the errors) have older versions of libc and any other library patch&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 14 Oct 2002 18:46:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825470#M940563</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-14T18:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825471#M940564</link>
      <description>Ted,&lt;BR /&gt;&lt;BR /&gt;Yes, I am aware of the differnet patches, but I am not sure where exectly the problems is.&lt;BR /&gt;&lt;BR /&gt;Again, if I say:&lt;BR /&gt;&lt;BR /&gt;remsh RemoteHost hostname&lt;BR /&gt;&lt;BR /&gt;remsh works fine&lt;BR /&gt;&lt;BR /&gt;However if I try:&lt;BR /&gt;remsh  RemoteHost '/usr/local/bin/perl -MSys::Hostname -le "print q(hello from: ), hostname;"'&lt;BR /&gt;&lt;BR /&gt;I get:&lt;BR /&gt;&lt;BR /&gt;/usr/lib/dld.sl: Can't open shared library: /hpx/work/ee/8.1.7.3/hpx32/src_1221/lib//libwtc8.sl&lt;BR /&gt;/usr/lib/dld.sl: No such file or directory&lt;BR /&gt;&lt;BR /&gt;I also tried this:&lt;BR /&gt;&lt;BR /&gt;remsh $(hostname) hostname&lt;BR /&gt;and remsh $(hostname) ... and got the same errors.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Leslie</description>
      <pubDate>Mon, 14 Oct 2002 18:58:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825471#M940564</guid>
      <dc:creator>Leslie Chaim</dc:creator>
      <dc:date>2002-10-14T18:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825472#M940565</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It looks like the libwtc8.sl is an Oracle shared library.  Do you have Oracle installed on the systems that are giving you that error?  Did you compile your version of Perl or did you install it from the depot?&lt;BR /&gt;&lt;BR /&gt;JP&lt;BR /&gt;</description>
      <pubDate>Mon, 14 Oct 2002 19:03:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825472#M940565</guid>
      <dc:creator>John Poff</dc:creator>
      <dc:date>2002-10-14T19:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825473#M940566</link>
      <description>Yes John,&lt;BR /&gt;&lt;BR /&gt;I do have Oracle installed on the server. I am not sure, but I think it was compiled manually, because it was necassary for the DBI module.</description>
      <pubDate>Mon, 14 Oct 2002 19:44:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825473#M940566</guid>
      <dc:creator>Leslie Chaim</dc:creator>
      <dc:date>2002-10-14T19:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825474#M940567</link>
      <description>&lt;BR /&gt;Was DBD::Oracle statically linked to perl? If so, you may need to defined ORACLE_HOME.&lt;BR /&gt;&lt;BR /&gt;remsh remotehost 'ORACLE_HOME=... /path/to/perl -MSys::Hostname -le "print q(hello from: ), hostname;'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Oct 2002 16:10:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825474#M940567</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-10-15T16:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using remsh</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825475#M940568</link>
      <description>Jordan,&lt;BR /&gt;&lt;BR /&gt;Not exactly, but thanks for the idea. Here is how I got it to work at the end:&lt;BR /&gt;&lt;BR /&gt;remsh remotehost "export SHLIB_PATH=$SHLIB_PATH; /usr/local/bin/perl -v"&lt;BR /&gt;&lt;BR /&gt;First of all, I made it simpler with just the 'perl -v', which also failed.&lt;BR /&gt;&lt;BR /&gt;Then I went through the normal process of elimination of the /etc/profile and found the SHLIB_PATH needed to be set.&lt;BR /&gt;&lt;BR /&gt;I am a happy camper (for now) but don't confuse the bunny with the original title:)&lt;BR /&gt;&lt;BR /&gt;Thanks Jordan,&lt;BR /&gt;Leslie</description>
      <pubDate>Tue, 15 Oct 2002 16:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-remsh/m-p/2825475#M940568</guid>
      <dc:creator>Leslie Chaim</dc:creator>
      <dc:date>2002-10-15T16:31:22Z</dc:date>
    </item>
  </channel>
</rss>

