Just run: bash log_blocks.sh or bash log_blocks.sh --o if you also want to log outputs to the console