-
터미널 명령어 return값 불러오기Python/Raspberry Pi 2021. 10. 14. 13:49
import os
def test()
cmd_result = os.popen('ifconfig').read()
print(cmd_result)
728x90'Python > Raspberry Pi' 카테고리의 다른 글
/dev/tty (0) 2021.10.20 baudrate (0) 2021.10.20 Raspberry pi wifi change without reboot (0) 2021.10.14 라즈베리 파이 WIFI 및 고정 IP할당 (0) 2021.10.13 serial_asyncio (0) 2021.10.08 댓글