對不起。我對此很新,並且找不到一個簡單的答案。在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)。
請溫和。
非常感謝。這正是我想聽到的。 –