From: Larry Fast Date: 2007-08-10T10:40:25+09:00 Subject: Re: `rake` fails: Exec format error A more complete version of what I'm doing is... crntDir = Dir.pwd Dir.chdir("other_directory_path") %x{ruby -e "require 'Rakefile'; Rake::Task['some_task'].invoke "} Dir.chdir(crntDir) Is there a more elegant ruby-ism that accomplishes this? -- Posted via http://www.ruby-forum.com/.