Reputation: 19082
I want to make a system
call in ruby, but rather than wait for the process to terminate, I want my script to continue running.
What's the recommended way to handle this?
Upvotes: 4
Views: 2947
Reputation: 46193
You can use Process.spawn
.
Once the process is spawned, you can either wait for the process to terminate (using waitpid
) or detach
it.
Upvotes: 10