파이썬 os.system / subprocess.popen 차이, 문제점
Difference between Subprocess-popen and os-system 장고로 만든 카카오톡 학식봇 코드를 수정하다가특정한 조건에 걸리면 파이썬 스크립트를 실행하게 만들고 있었다.os.system("python3 a.py") 형식으로 실행을 했었는데장고 실행화면에 그대로 노출이 될 뿐더러 request timeout이 걸려버려서제대로 봇에 먹히지 않았다.그래서 이유를 찾아보니 다음과 같았다. interface. Those were designed similar to the Unix Popen command.system() executes a command specified in command by calling /bin/sh -c command, and returns after the ..