On Wed, Mar 05, 2003 at 12:52:31PM -0500, Andrew Gaul wrote:
> > How do I fix this? I don't know how I would add something to the PATH
> > that corresponds to my non-interactive login shell. 
> 
> Convince ssh to source your profile (possibly edit $HOME/.ssh/rc on the
> remote machine?) or execute a script on the remote machine setting up
> the environment then executing the command instead of executing the
> command directly.  Alternatively one could execute "bash -c foo", but
> this will become ugly quickly.

I don't really get how to do this. 

Adding 
        
        source /home2/shrew/.bash_profile

to .ssh/rc doesn't seem to change the output of 

        ssh eye2 echo '$PATH'

and adding  

        PATH=$(PATH):/usr/bin/X11

to .ssh/rc doesn't work, it complains with: 

[EMAIL PROTECTED] shrew]$ ssh eye2 echo '$PATH'
.ssh/rc: line 1: PATH: command not found
/usr/local/bin:/bin:/usr/bin
[EMAIL PROTECTED] shrew]$

Any suggestions? I'm sure I'm not doing this right. 


-- 
Shashank G. Khandelwal
Research Engineering/Scientist Assistant
The Center for Computational Visualization
Texas Institute for Computational Engineering and Sciences
http://www.cs.utexas.edu/users/shrew/
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://www.utacm.org/mailman/listinfo/siglinux

Reply via email to