对不起。我对此很新,并且找不到一个简单的答案。在python我可以说:如何在bash中提示用户输入?请修复我的Python/bash Spanglish
from sys import argv
script, user_name = argv
prompt'> '
print "Hi %s, I'm the %s script" % (user_name, script)
print "I'd like to ask you a few questions"
print "What channel is that on?"
channel = raw_input(prompt)
blah blah -c %r % (channel)
我需要能够要么完成的raw_input与()同样的事情在一个普通的bash(.SH)shell脚本OR我需要能够操纵其他程序从一个python脚本或我需要能够从python脚本内启动第二个shell(bash)。
请温和。
非常感谢。这正是我想听到的。 –