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

About these ads

Written by S

Thu, 2006-03-16 at 08:58:00 +05:30

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”.
    -Y

    mickey panayiotakis

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

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

    Shreevatsa

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

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


Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 75 other followers