modify run_cmd_by_string