python调用shell脚本
[root@oracledb python3]# cat /home/b.sh
echo "hello"
>>> import subprocess
>>>
>>> subprocess.call('sh /home/b.sh', shell=True)
hello
0
[root@oracledb python3]# cat /home/b.sh
echo "hello"
>>> import subprocess
>>>
>>> subprocess.call('sh /home/b.sh', shell=True)
hello
0