You can also embed commands inside double-quoted strings like this:
print( "Goodbye #{%x{dir main.rb}}" ) print( "Goodbye #{%x{ruby}}" )
The command itself is evaluated first.
Your Ruby program then waits until the process that starts has terminated.