When I'm logged in my ArchLinux server and type:
$echo $PATH
I get...
/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl
But when I'm NOT logged in and try:
ssh myyser@mysever 'echo $PATH'
i get..
/usr/bin:/bin:/usr/sbin:/sbin
The PATH is correct in my /etc/profile but ssh seems to not load that.
Is there any way to fix it for all users/ssh sessions?
It does not happen when i using ubuntu
Posting here as suggested by Eugene Mayevski 'EldoS Corp