The Lumber Room

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

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

(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.

Written by S

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

Posted in compknow

3 Responses

Subscribe to comments with RSS.

  1. May also want to look for “mesg y” in bashrc files.
    Cpanel-installed /etc/bashrc includes “mesg y”.

    mickey panayiotakis

    Fri, 2009-01-30 at 18:29:59

  2. Right, that’s also a common culprit. Added it to the post — thanks!


    Fri, 2009-01-30 at 19:09:44

  3. […] Link: stderr is not a tty […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: