From: Jason Burgett Date: 2007-03-12T03:23:50+09:00 Subject: Exiting a ruby script I'm in the process of playing around with a, application launcher script. It's fairly far along, but I can't seem to get the script to exit when the application is actually launched. Here's the final bit of code: @finalApps.each {|finalApp| if finalApp.id == runApp.to_i updateRanking finalApp.name symbolMatch = finalApp.command.match(/ %/) if symbolMatch system(symbolMatch.pre_match) else system(finalApp.command) end end } There's some extra stripping of the command in there. The functional part is the internal if loop. After "system(symbolMatch.pre_match)" or "system(finalApp.command)" the app launches properly, but in the console the ruby script stays open until the app is closed. Is there a way to get the ruby script to terminate immediately after the app is successfully launched? -- Posted via http://www.ruby-forum.com/.