From: Stefano Crocco Date: 2007-08-10T15:51:28+09:00 Subject: Re: `rake` fails: Exec format error Alle venerd狸 10 agosto 2007, Larry Fast ha scritto: > 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? If you want to execute a rakefile, I think you can do: %x{rake ...} Stefano