Running a ruby program on AWS [closed] - ruby

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I have a Ruby code that I would like to run on AWS. Is is possible to run Ruby code on AWS?

You can run Ruby scripts on anything that has Ruby installed.
AWS (Amazon Web Services) provides you with a suite of tools to host servers (among other things). So your question "is it possible to run a simple ruby code on amazon AWS?" makes almost no sense at all. However, if you host an AWS server with some operating system, such as Ubuntu, then all you need to do is install Ruby, but it typically comes pre-installed on Linux.

Related

GO support for building CLI tools using native system shell [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I am planning to use GO to build a CLI tool executed in native system shell rather than a separate shell.
What packages for GO can be used for this purpose other than codegangsta/cli ?
Additionally,
Is there any package to get REST API call support (such as curl)
in GO?
curl has an interesting implementation in Go with astaxie/bat
Go implemented CLI cURL-like tool for humans. Bat can be used for testing, debugging, and generally interacting with HTTP servers.
That means you needs to implement your REST server in order for any curl-like tool to interact with it.
See for instance "Making a RESTful JSON API in Go".

Trigger perl scripts remotely on windows [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have two machines A and B. Machine B has perl installed and scripts are placed in a shared directory. Machine A doesn't have perl installed (I don't want to install perl on this machine). There is some automation running in Machine A and that automation wants to trigger perl scripts in Machine B by passing some parameters.
Is this possible? What is recommended?
Thanks
There's probably more possibilites, but from the top of my head:
Mark Russinovich's psexec (notes#ss64.com)
the Windows Management Instrumentation Commandline tool wmic (notes#ss64.com)
As long as the machine on which the perl scripts are to be executed has perl installed, it's not a problem if the caller machine doesn't.

Scheduling an existing AWS EC2 instance to start/stop [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Right now I am using the Auto Scaling Command Line Tool to launch a new EC2 instance once per day and run a script that terminates itself upon completion. Now I need to do the same thing with a different script, but this one requires several Python modules to be installed. Therefore, I would like to schedule the start/stop of a single, existing instance rather than the launch/termination of a brand new instance. I've scoured Amazon's documentation/blogs but I can't determine if this functionality is supported with Autoscaling. How could this be accomplished?
Its not supported with autoscaling. If you want to keep doing what you are currently doing. You could install the python modules with a cloud init script.
You can also start/stop an existing instance with the command line tools, just not the autoscaling ones.
My eventual solution was to set up an instance the way I wanted and then create an AMI from it. My autoscaling setup then starts/stops an instance of that AMI.

What are my options to deploy different ruby versions to a server? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
The Linux server I'm deploying a web application to has a rather outdated version of Ruby (1.8.7) in their repositories, and it doesn't look like that's going to change any time soon.
What are my options in terms of using other ruby versions than the distro sanctioned package in a production environment?
If I was to use something like rvm, how would that affect my deployment process, server management, and stability?
rvm or rbenv are your best bets for managing multiple ruby versions.
As long as you setup RVM/rbenv for the user you're going to be deploying to, this will work fine. In fact, I've done this myself on AWS with Capistrano.

Stand alone ruby gem that can be installed in server [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to write a ruby gem which will act as a monitoring tool for kannel. download and install in server and start a small worker or something.How i can make this? Iam not asking the script for kannel monitoring but how to make a tool .
RailsCasts has a decent episode on making a gem with Bundler.
Bundler will handle the structure, you just need to write your application. Libraries in the /lib directory, binaries (or scripts you want to be executable) in /bin. Pretty simple!

Resources