The Lumber Room

"Consign them to dust and damp by way of preserving them"

Archive for March 2006

stderr is not a tty – where are you?

with 3 comments

If you’re getting

stderr is not a tty - where are you?
stdin: is not a tty

messages everytime you run something over ssh (or scp), the fix is probably to change the “biff y” line, in ~/.bashrc or wherever it is, to

if `tty -s ` && `test -x /usr/bin/biff`; then
  biff y
fi

(might also be “mesg y” instead of “biff y”, for example.) More generally, it’s happening because some command in your ~/.bashrc (or some other file sourced automatically) is expecting the shell to be interactive, when it’s not. The fix is to find out which program is the culprit, and make sure the shell is interactive before calling the command.

This and other great tips about nuisance messages at this page called Eliminating Some Common Nuisance Messages.

Advertisement

Written by S

Thu, 2006-03-16 at 08:58:00

Posted in compknow