os.system – POFTUT

Tagged: os.system


How To Execute Shell Command with Python

Python provides a lot of modules for different operating system related operations. Running external command or shell command is very popular Python developers. We can call Linux or Windows commands from python code or script and use output. Import os Module We can use system() function inorder to run shell command in Linux and Windows operating systems. system() is provided by os Module. So we will load this module like...

Enjoy this blog? Please spread the word :)