terça-feira, agosto 18, 2015

Solving 'stdin: is not a tty' error

Solving 'stdin: is not a tty' error



scp stdin: is not a tty


Solving 'stdin: is not a tty' error on

The “stdin: is not a tty” warning kept on popping up when ssh-ing to a few servers. I’ve learned that the problem is because I had mesg n on top of my .bash_rc file. Quick fix is to wrap it around an if statement, like so:
if `tty -s`; then
   mesg n
fi

Nenhum comentário: