Python Call a System Command!
24.8 هزار بار بازدید -
4 سال پیش
-
Ever wonder what the best
Ever wonder what the best way to send a system command from Python is? Today we answer that question as I go over the Python 'Subprocess' module. With this module, you can call shell commands and interact with system processes.
👨💻 Join our Discord Community of DevOps Engineers: Discord: discord
☕ Buy me a coffee: https://www.buymeacoffee.com/bradmorg
📁 Code Available Here: https://devopslifecycle.com/lessons/1...
---
📘 Chapters:
0:00 Introduction
0:32 Using os.system
1:20 Using the Subprocess module
4:52 Sending command output to a file
5:49 Long running commands.. Use Subprocess.Popen !
👨💻 Join our Discord Community of DevOps Engineers: Discord: discord
☕ Buy me a coffee: https://www.buymeacoffee.com/bradmorg
📁 Code Available Here: https://devopslifecycle.com/lessons/1...
---
📘 Chapters:
0:00 Introduction
0:32 Using os.system
1:20 Using the Subprocess module
4:52 Sending command output to a file
5:49 Long running commands.. Use Subprocess.Popen !
4 سال پیش
در تاریخ 1399/12/04 منتشر شده
است.
24,823
بـار بازدید شده