From: Heesob Park Date: 2008-07-17T16:49:47+09:00 Subject: Re: continue the execution of a ruby script after a shell comand Hi, 2008/7/17 Hamlat Ameziane : > Hi, > I have a little problem,I will be grateful if someone can help me. > > So I have this script : > > puts '*** Beginning of the script ***' > path = 'C:\another_script.rb' > exec 'ruby '+path > puts '*** End of the script ***' > > > And I have the following result : > > puts '*** Beginning of the script ***' > ## execution of script C:\another_script.rb > > > But Ruby dont print the last line : *** End of the script *** > > I have tried this : > > t = Thread.new {exec 'ruby '+path} > Thread.pass (t) > > But I have the same result !!!! You shoud use system method instead of exec in this case. Regards, Park Heesob