H
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 !!!!
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 !!!!