scp issue

From: Walton, Joe (JWalton@alldata.net)
Date: Mon Jan 17 2005 - 16:46:10 EST


In the past, I posted a problem in which when I would use scp from
machine1 to machine2, on machine2, the wrong scp would be called,
because there was an scp file in /usr/bin, but the scp that I wanted to
run was in /opt/local/bin. I was able to fix the problem by putting in
my .bashrc file:

PATH=/opt/local/bin:$PATH
export PATH

Now the right scp is getting called. But my new problem is that this
doesn't work for ksh. Even if I create a .kshrc file, that sets the
PATH like above, it doesn't get run and the wrong scp is called on
machine2 (/usr/bin/scp). I even tried adding:
ENV=$HOME/.kshrc to my .profile, but it still didn't work.

Anybody know a way I can set the PATH variable so that it comes into
effect when I use scp?

I'd like to do this just my ID, so I don't want to make a global change
in /etc/profile.

Thanks,

Joe Walton
Unix System Administrator
Office Phone: 614-944-5863
Cell Phone: 614-657-7608
Email: jwalton@alldata.net <mailto:jwalton@alldata.net>
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:30:01 EDT