expect腳本執行後報錯;bash
以下內容ide
autosu.sh: line 3: spawn: command not found
couldn't read file "password:": no such file or directory
autosu.sh: line 5: send: command not found
autosu.sh: line 6: interact: command not foundspa
說明執行方式不正確,由於expect用的不是bash因此會報錯。執行的時候直接./autosu.sh就能夠了orm