An example for executing a command and prints the output of the command in realtime.