Pythonからシェルスクリプト(コマンドではない)を実行しようとしています:
main.py
-------
from subprocess import Popen
Process=Popen(['./childdir/execute.sh',str(var1),str(var2)],shell=True)
execute.sh
----------
echo $1 //does not print anything
echo $2 //does not print anything
var1 と var2 は、シェル スクリプトへの入力として使用している文字列です。何か不足していますか、それとも別の方法がありますか?