in reply to stty: standard input: Invalid argument

That message is coming from an "stty" command in your .bashrc (or whatever) on mybox. Change this:
stty what ever ...
to this:
if [ -t 0 ]; then # only run if stdin is a terminal stty what ever ... fi
, and the problem will go away.

Replies are listed 'Best First'.
Re^2: stty: standard input: Invalid argument
by xorl (Deacon) on Mar 06, 2006 at 17:11 UTC
    That message is coming from an "stty" command in your .bashrc (or whatever) on mybox.
    Ok I was afraid you'd say that. /etc/bashrc already has the terminal check in it. And removing the stty command doesn't help either.

    There are the following files on the system

  • /etc/bashrc
  • /etc/profile (just noticed this one)
  • /home/username/.bashrc
  • /home/username/.bash_profile

    .bash_profile looks for .bashrc and then runs it. It also sets a couple of var including PATH and EDITOR and exports them.
    .bashrc only looks for /etc/bashrc and then runs it.
    /etc/bashrc has the stty commands but they only run if it is a terminal.
    /etc/profile just sets some vars and runs stuff in
    /etc/profile.d (all of which just set more vars)

    There does not appear to be any other bash startup files used and only /etc/bashrc has an stty command.

    So I'm still perplexed. It sounds like an stty command is still being executed eventhough it shouldn't be. I'm not even sure where to look for it.

      It says right in the error message that it's stty running, so that's definitely what's going on.

      As for what file is running it, just put an "echo TOP", "echo MIDDLE", and "echo BOTTOM" in the top, middle and bottom of your /etc/profile or whatever, and in whatever files he might call or source.

      Move those echoes around to search for the stty in a binary fashion.