阅读背景:

将不会分配伪终端错误,因为stdin不是终端 - sudo

来源:互联网 

There are other threads with this same topic but my issue is unique. I am running a bash script that has a function that sshes to a remote server and runs a sudo command on the remote server. I'm using the ssh -t option to avoid the requiretty issue. The offending line of code works fine as long as it's NOT being called from within the while loop. The while loop basically reads from a csv file on the local server and calls the checkAuthType function:There are other threads with this same topic bu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: