Forum: Ruby I love net/ssh library

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
272df854e268223a57c4aec2d7b65436?d=identicon&s=25 haws (Guest)
on 2007-01-30 22: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 " +
87e41d0d468ad56a3b07d9a6482fd6d5?d=identicon&s=25 Hemant Kumar (gnufied)
on 2007-02-01 15: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.