I have a ruby timeout that calls a system (bash) command like this..
Timeout::timeout(10) { `my_bash_command -c12 -o text.txt` }
but I th
Handling processes, signals and timers is not very easy. That's why you might consider delegating this task: Use the command timeout on new versions of Linux:
timeout
timeout --kill-after 5s 10s my_bash_command -c12 -o text.txt