Subprocess module
subprocess — Subprocess management — Python 3.10.4 documentation
python subprocess - Python Tutorial
wes@wes:~/Documents/python/ch1$ cat python-3 #!/usr/bin/env python import subprocess subprocess.call(["ls", "-l"]) subprocess.call(["ls", "-l","/tmp/"]) wes@wes:~/Documents/python/ch1$ python python-3 total 20 -rw-r--r-- 1 root root 72 май 22 05:14 python-1 -rw-r--r-- 1 root root 139 май 22 05:25 python-2 -rw-r--r-- 1 root root 109 май 22 07:26 python-3 -rw-r--r-- 1 root root 73 май 22 05:11 shell-1 -rw-r--r-- 1 root root 104 май 22 05:18 shell-2 total 16 -rw------- 1 wes wes 0 май 22 05:05 config-err-n3sbzD drwx------ 2 wes wes 4096 май 22 06:0



