Exercises, examples and other material relating to training module R115. This module is presented on
Private Courses and
Specially Run Courses only
Articles and tips on this subject | updated |
4676 | Running shell (operating system) commands from within Ruby Ruby is an excellent systems admin / scripting tool, allowing other shells and processes to be run from within a Ruby program in various ways.
Using backtics or the %x notation, commeand output on STDOUT is routed back into a variable - for example:
first = `grep -c option247 ac_20160516 ... | 2016-05-18 |
3155 | Rake - a build system using code written in Ruby If you're programming in C, C++ or Java, you'll be managing a large number of source files, and using a whole series of commands to build these forward into .o (object) or .class (java class) files, then - in the cases of C and C++ - into executable files.
The make system has been around for as long ... | 2011-02-10 |
Examples from our training material
rakefile | Rakefile for complete C++ example |
shelley | running a bash script in a ruby wrapper |
Background information
Some modules are
available for download as a sample of our material or under an
Open Training Notes License for free download from
[here].
Topics covered in this module
What's possible?
The C Language API - calling C from Ruby.
Embedding a Ruby interpreter in your C.
Creating a Ruby extension.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Ruby,
Lua,
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.