[root@oracledb python3]# cat /home/b.sh
echo "hello"


>>> import subprocess
>>>
>>> subprocess.call('sh /home/b.sh', shell=True)
hello
0

相关文章: