Hi, I''m trying to run the ''rails'' command from a ruby script. I''m able to do something like `svn this_and_that` just fine, but I can''t seem to execute the rails command using: `rails new_app` It keeps throwing an error: Exec format error - rails new_app (Errno:ENOEXEC). Am I missing something? Thanks, Nelson -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nelson Hsu
2007-May-14 22:13 UTC
Re: `rails app_name` => Exec format error (Errno:ENOEXEC)
Ahh..found the answer. This is probably because I''m on a windows machines, but you cannot execute `rails app` in a ruby script. You have to write: `rails.cmd app` Nelson Hsu wrote:> Hi, > > I''m trying to run the ''rails'' command from a ruby script. I''m able to > do something like `svn this_and_that` just fine, but I can''t seem to > execute the rails command using: > > `rails new_app` > > It keeps throwing an error: > Exec format error - rails new_app (Errno:ENOEXEC). > > > Am I missing something? > > Thanks, > Nelson-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mohit Sindhwani
2007-May-17 13:53 UTC
Re: `rails app_name` => Exec format error (Errno:ENOEXEC)
Nelson Hsu wrote:> Ahh..found the answer. This is probably because I''m on a windows > machines, but you cannot execute `rails app` in a ruby script. You have > to write: > > `rails.cmd app` > > >I use rails app all the time.. I''m not sure why you see a problem :-S anything with a .cmd executes perfectly fine without the .cmd specified. So, rails.cmd is the same as typing as rails in Windows. Cheers ..m. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---