Pseudo-terminal will not be allocated because stdin is not a terminal. Write failed: Broken pipe