1827295 Members
4127 Online
109717 Solutions
New Discussion

openssh, env, and perl

 
Jimmy Rogers
Frequent Advisor

openssh, env, and perl

I'm trying to use openssh so user1 can run a perl script as user2 remotely.

ssh -l user2 remotehost perl perlscript

The env settings don't seem to translate correctly. User2 has some other perl libraries it uses to execute, but it only uses generic perl libs for user1. I even put the perllib settings on user1's acct, and a perl -V shows identical to user2 on the other box. But still, when I do:

ssh -l user2 remothost perl -V

it still returns the generic perl libs.
So basically, I have the perl libs on both users identical, but ssh gets neither env right, any suggestions?
2 REPLIES 2
Santosh Nair_1
Honored Contributor

Re: openssh, env, and perl

Which perl are you using...remember that HP ships a very old perl in /usr/contrib/bin/perl. I would give the full path to perl just to be sure that I'm using the one that *I* want and not the "default" one in /usr/contrib/bin.

-Santosh
Life is what's happening while you're busy making other plans
Robert Binkley
Advisor

Re: openssh, env, and perl