ara.t.howard | 15 May 18:02
Gravatar

Re: ssh to execute remote ruby script


On May 15, 2008, at 9:53 AM, Blake Miller wrote:

>
> I can't figure out why, when ssh'ing via the net/ssh package, the  
> remote
> script cannot include rubygems.

the remote machine has two rubys, one which has rubygems installed and  
one without - when you ssh into a machine you may or may not have your  
environment configured correctly and, thus, may or may not have your  
'normal' PATH set.  try your command with the full path to the ruby  
you are expecting to use.  note that any

   system 'something'

may also fail if the PATH setting is indeed the cause.

this is a wild ass guess.

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


Gmane