From: Dave Foo Date: 2009-01-29T05:05:16+09:00 Subject: Re: problems with rake and sh Roger Pack wrote: > >> Any one know of how I can get this small snippet to work in a ruby >> task??? > > maybe run it within bash or sh -c or so... [?] > -=r It does run fine in bash... the whole point for me is to use Ruby inside a rake task to do my work... and the one thing I cannot figure out is how to get the ssh connection to work. If I connect once and simply exit... and then connect again, in the same script.. with the same server instance, every further call that shells out works fine. It is only a problem getting the initial shell connection to work. I am sure there is a config change I can make to solve this, but so far, my only work-around has been the silly "connect first in a loop"... Thanks -- Posted via http://www.ruby-forum.com/.