This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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: 329

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
Similar Threads
Can't start with Ruby on Windows
Remote Debugging in Eclipse
Ruby as multi purpose scripting language?
Start and stop apache service running on a remote server in ANT
Callling a Script from a java program