标签: bash shell expect
我试图在我的bash脚本中执行一个提示输入密码的python文件,我需要显示执行输出(缓冲区?):
GrabIt=$(expect -c ' spawn python grabber.py ../MyDir expect "* password? " send "'${PASSWORD}'/r" send $expect_out(buffer) ') echo $GrabIt
由于