I love net/ssh library


#1

I just wish i had discovered this earlier - i can automate so much
stuff now :smiley:

Syncronize my winxp clock with server’s

require ‘rubygems’
require ‘net/ssh’

Net::SSH.start( ‘servidor’, ‘hugo’ ) do |session|
input, output, error = session.process.popen3( “date +%H:%M:%S” )
exec "time " + output.read
end


#2

On Wed, 2007-01-31 at 06:20 +0900, haws wrote:

end

Read Capistrano code for hackery on this.