Forum: Ruby Rubyscript2exe and "extra" scripts

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9d4960f8319664f0f7896230eebace73?d=identicon&s=25 Glen Holcomb (Guest)
on 2008-10-15 16:58
(Received via mailing list)
I have a script that has been "compiled" using rubyscript2exe and that
script executes another script at various times.  However the second
script
isn't part of the main program as it needs to run independently.  I
can't
get the second script to run.

This is what I am trying:

ruby_path = RUBYSCRIPT2EXE.appdir.gsub(/app[\/|\\]/, "bin/ruby.exe")
sd_script = "#{ruby_path} #{TEMP_DIR}shutdown.rb " +
Thread.current["today_by_time"]
system "start #{sd_script}"

Instead of running the shutdown script I get an explorer window.  I was
hoping to do this without having to turn the shutdown.rb script into a
separate exe as they are kind of large.

-Glen


--
"Hey brother Christian with your high and mighty errand, Your actions
speak
so loud, I can't hear a word you're saying."

-Greg Graffin (Bad Religion)
This topic is locked and can not be replied to.