1 2 3 4 5 6
#!/usr/bin/env ruby require 'pathname' Dir.chdir Pathname.new(__FILE__).parent do exec("./script/test") end