본문 바로가기

Linux

(에러)the input device is not a TTY

간혹가다 bash shell script나 ssh, docker에서 -t 옵션을 준 다음 <<<을 통해 input값을 넘겨주는 경우  pseudo-TTY에러가 자주 뜨는 것을 알 수 있다. 그 이유는 -i옵션으로 input을 -t옵션으로 인해 interface driver가 tty(stdin/stdout의 상위)로 실행되어야하는데 input pipe가 들어오니, 이럴때에는 t옵션을 주지 않으면 된다.

 

 

'Linux' 카테고리의 다른 글