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?
You can use Process.spawn.
Once the process is spawned, you can either wait for the process to terminate (using waitpid) or detach it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With