I'm trying to start rake running for a sub-component of our system.
However Ruby doesn't like `rake` and produces the following error...

> ruby -e "`rake`"  (it gives the same error inside my .rb files)

-e:1:in ``': Exec format error - rake (Errno::ENOEXEC)

I worked around it by creating a .rb file that contains:
Rake::Task['taskname'].invoke

Is there a better way or a standard practice for invoking an external
Rake process from inside Ruby?

Thanks,
Larry
-- 
Posted via http://www.ruby-forum.com/.