Exec fmt_cmd with Popen