Ruby allows many different ways to execute commands or sub-processes. Here I will list few of them
Backtick ( `cmd` ) :
backtick returns the output of the cmd in a subshell.
Here the backtick operation forks the master process and the operation is executed in a new process. However this is a blocking operation. The main application waits until the result of backtick operation completes.