-
Download and install AlwaysUp, if necessary.
-
Download and install Ruby, if necessary. The RubyIstaller package is recommended.
Make a note of where you have installed Ruby as this folder will be used in a later step. We have installed RubyIstaller in C:\Ruby for this tutorial.
-
Start AlwaysUp.
-
Select Application > Add to open the Add Application window:
-
On the General tab:
-
In the Application field, enter the full path to the Ruby executable (ruby.exe). This is C:\Ruby\bin\ruby.exe for our installation.
-
In the Arguments field, enter the full path to your Ruby script. We want to run our sample script, C:\Ruby\sample-script.rb.
-
In the Name field, enter the name that you will call this application in AlwaysUp.
We have used My Ruby Script but you can specify virtually anything you like.
-
Click over to the Logon tab and enter the user name and password of the account where you installed Ruby. Please ensure that you can run your script successfully from that account.
-
If you only want your script to run periodically (that is, not 24/7), click over to the Restart tab and choose when to run. We would like our script to be run every day at 1 AM.
-
Click the Save button. In a couple of seconds, an application called My Ruby Script will show up in the AlwaysUp window.
It is not yet running though.
-
To start the service, which will run the Ruby script at 1 AM, choose Application > Start "My Ruby Script".
-
That's it! Next time your computer boots, your Ruby script be launched immediately, before anyone logs on.
We encourage you to explore the many other settings that may be appropriate for your environment.