File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 331

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
It's not a secret anymore!