Monday, March 8, 2010

Starting a background bash process in Ruby

Consider this example, I want to execute my C++ code
which runs an infinite loop in the background through
my Ruby code.

The code is just a single line:
Thread.new { `./a.out myarg` }

0 comments:

Post a Comment