Topic: pause script till *action* is carried out

Hey guys,

Quick question for you all. I'm doing a system call for an exe file to be run in a ruby code and I don't want the ruby code to continue until the exe has finished running, is there any code or function I can use that will pause the script till the system call is complete?

Thanks for your time and help!