Sean O'Halpin
7/11/2006 10:52:00 AM
On 7/11/06, Petr Spisek <ollin@email.cz> 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