【发布时间】:2013-03-11 04:30:27
【问题描述】:
Shell 脚本: 你好.sh
#!/bin/bash
echo "Enter your name: "
read name
echo "Hello $name"
我想从 python 中调用 Hello.sh 并以非交互方式填充变量“name”。怎么办?
【问题讨论】:
-
这和你的previous question一样。
标签: python bash shell subprocess stdin