From: Sean O'Halpin Date: 2006-07-11T19:51:35+09:00 Subject: Re: Is possible to return after exec cmd? On 7/11/06, Petr Spisek wrote: > Hi folks, > why doesn't work command 5.times{exec "pwd"} like this 5.times{puts > "Hello"} ? > > ollin > exec() starts a new process in place of the current one, i.e. the ruby interpreter. Use system() if you want to launch a child process and return when it's finished. Regards, Sean