On Wed, 2006-05-31 at 13:41 +0000, James wrote:

> Any ideas on the best way to trigger this script? The .bash_profile file does
> not get accessed.

from man bash
--noprofile
              Do not read either the system-wide startup file /etc/profile  or
              any   of  the  personal  initialization  files  ~/.bash_profile,
              ~/.bash_login, or ~/.profile.   By  default,  bash  reads  these
              files  when  it  is  invoked  as  a  login shell (see INVOCATION
              below).

so maybe ssh is not treated as a login shell, although I thought it was!

Have a look at the INVOCATION section of `man bash` to get more info.

Maybe bash treats ssh like rsh and executes .bashrc for ssh connections,
not .bash_profile...

HTH,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

The faster I go, the behinder I get.
                -- Lewis Carroll

-- 
gentoo-user@gentoo.org mailing list

Reply via email to