def exec_cmd_redir(cmd, file_fullname):
    with open(file_fullname, 'w') as fout:
        subprocess.call(cmd, stdout=fout)
execute a shell command
dataset/ETHPy150Open sk1418/retmux/tmuxbk/util.py/exec_cmd_redir