Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- ssh does not get original @INC $PATH values
May 11, 2011, 6:42 pm
rate this thread
When I logon to a different machine, on which I have an account, my
shell does not have the original @INC and $PATH environment values,
which I will have if logged on to that machine directly. @INC is the
variable where perl looks for its module.
Can anyone please explain and tell me a solution so that when I log on
to a machine, I should have original $PATH and @INC variable values.
I will appreciate this.
Re: ssh does not get original @INC $PATH values
Generally shells can be run two ways, interactively and login.
They generally source different RC files depending on how they are called.
Its quite possibe that ssh is running your shell differently than how
ever you otherwise access the machine.
If you setup your $PATH and @INC in one of the RC files for one of the
way a shell can be called, they won't be picked up in the other.
I'd say read the man page, but it doesn't specify things all that
closely in the version manpage I have. Or if you are using bash, the
two different rc files it reads are either .bashrc or .bash_profile.
Some of the different linux distributions I believe has .bash_profile
source .bashrc or vice-versa. You could try that trick.
- » openssh doesn't appear to do the inaddr-arpa lookups correctly
- — Previous thread in » Secure Shell Forum
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum