Forum: Ruby I love net/ssh library

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
haws (Guest)
on 2007-01-30 23:20
(Received via mailing list)
I just wish i had discovered this earlier - i can automate so much
stuff now :D

# 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
Hemant K. (Guest)
on 2007-02-01 16:22
(Received via mailing list)
On Wed, 2007-01-31 at 06:20 +0900, haws wrote:
> end
>
>

Read Capistrano code for hackery on this.
This topic is locked and can not be replied to.