From: "ara.t.howard" Date: 2008-12-19T11:51:55+09:00 Subject: Re: .profile in UNIX On Dec 18, 2008, at 11:35 AM, Bob Smyph wrote: > Does anyone know how to access and use the .profile in UNIX while > using > NET::SSH in Ruby? > > Thanks for the help you need to invoke a login shell on the remote host, then your .profile will be sourced. probably there is some option to specify the remote shell for Net::SSH, specify something like '/bin/bash --login' alternatively wrap your commands in something that does this for you like cfp:~ > cat `which bashenv` #!/bin/bash --login exec "$@" and then invoke commands like 'bashenv something.exe' a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama