check popen status