From: Mateusz Tybura Date: 2008-08-14T23:38:12+09:00 Subject: Re: Starting new process on Windows! Glen Holcomb wrote: > Is there an easy/clean way to start a new process in Windows that will > execute just a section of code? I've tried win32-process but it spawns > a > new version of the entire script which doesn't help in my situation. > > -- > "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) Try to use ruby threads. Example thread = Thread.new do Thread.stop #thread will not execute since you run it yourself p "Hi I'm thread" end p "Before thread" thread.run p "After thread" -- Posted via http://www.ruby-forum.com/.