B
badcherry
I am wanting inside of a ruby script to execute another ruby script in
a subprocess in the same manner as exec(). As first thought I
considered seeing if you can lookup the ruby executable path from
within ruby, but I couldn't find a way of doing it. If that was the
case you could just say exec("/usr/bin/ruby " + "file.rb").
a subprocess in the same manner as exec(). As first thought I
considered seeing if you can lookup the ruby executable path from
within ruby, but I couldn't find a way of doing it. If that was the
case you could just say exec("/usr/bin/ruby " + "file.rb").