From: Joel Pearson Date: 2013-06-26T03:38:11+09:00 Subject: Re: Creating ruby script exe That's a side-effect of using the command --no-dep-run Here's the code sample I suggested before, with an extra note: def initialize # Allow EXE build without running. if defined?(Ocra) # Let OCRA pick up the cookies from Mechanize. Mechanize.new.cookies # Let OCRA pick up file-tail ... something that uses file-tail here... # Quit so Ocra can do its thing. exit end # Normal stuff goes here... @agent = Mechanize.new end -- Posted via http://www.ruby-forum.com/.