This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Ruby and the fly likes Executing ruby script remotely Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Languages » Ruby
Bookmark "Executing ruby script remotely" Watch "Executing ruby script remotely" New topic

Executing ruby script remotely

Amrutha sanjeevraj

Joined: Mar 11, 2013
Posts: 1
How to execute ruby script remotely or accessing ruby script from one machine and executing it on another machine ?
Sumit Bisht
Ranch Hand

Joined: Jul 02, 2008
Posts: 330

It takes the same route as executing any script over a remote system over bash. Just do a curl to get the script ruby <(cur -s url)
David Harrison

Joined: May 17, 2013
Posts: 1

here is an example, using ssh and pgp-key-pairs for authentication, on Unix
In this example, it executes a rake task

ssh [user_name]@[host] "cd [ruby_rails_directory]; RAILS_ENV=[environment] rake [rake_task]"
I agree. Here's the link:
subject: Executing ruby script remotely
jQuery in Action, 3rd edition