Pseudo-terminal will not be allocated because stdi

2019-08-17 17:52发布

问题:

I'm running below command

subprocess.Popen('sshpass -p "Kn0od!e" ssh -t -t -o StrictHostKeyChecking=no deceapp@{0} grep -v {1} /opt/jetty_coordinator/jetty/logs/dece* '.format(machineName,grepString), stdout=subprocess.PIPE, stderr=None, shell=True)

where machinename is my hostname of machine.But getting below error as

Pseudo-terminal will not be allocated because stdin is not a terminal