如何使用子进程模块运行bash脚本,我必须给出几个参数?
这就是我目前使用的:
subprocess.Popen(['/my/file/path/programname.sh', 'arg1 arg2 %s' % arg3], \ shell = True)
bash脚本似乎没有采用任何参数.任何见解都非常感谢!
python bash arguments subprocess popen
arguments ×1
bash ×1
popen ×1
python ×1
subprocess ×1