aspose file tools*
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
Author

Executing ruby script remotely

Amrutha sanjeevraj
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Executing ruby script remotely