![Python에서 우분투 쉘 명령 실행](https://linux55.com/image/176289/Python%EC%97%90%EC%84%9C%20%EC%9A%B0%EB%B6%84%ED%88%AC%20%EC%89%98%20%EB%AA%85%EB%A0%B9%20%EC%8B%A4%ED%96%89.png)
저는 현재 자동화와 Python 프로그래밍을 배우고 있습니다. Python에서 Linux 명령을 실행하는 방법을 알고 싶습니다. 내가 실행하고 싶은 명령은 다음과 같습니다
설치 = os.system("mysql_secure_installation") 루트의 현재 비밀번호를 입력하세요("없음" 입력).
나중에 스크립트를 입력하는 방법
Enter current password for root (Enter for None):
사용하면 install = os.system
처리할 수 없습니다