fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] err: stdin: is not a tty


From: Jeff Forcier
Subject: Re: [Fab-user] err: stdin: is not a tty
Date: Sun, 24 May 2009 23:07:03 -0400

Hi Erik,

Did a quick google and it sounds like you've got something in your
bashrc or other RCfile that expects an interactive shell, which Fabric
doesn't do by default (it does a noninteractive login shell).

See for example http://platonic.techfiz.info/2008/10/13/stdin-is-not-a-tty/ .

So there's two ways you can address this:

* Figure out what the offending program is in your shell RCfile and
remove it or wrap it in an if statement that ensures it only runs if
the shell is in fact interactive;
* In your fabfile, tweak env.shell so that it says e.g. "/bin/bash -li
-c" instead of "/bin/bash -l -c" (i.e. add a -i argument so that it's
interactive too). I don't recommend this since it may well introduce
other oddball side effects (using -i isn't, to my knowledge, well
tested), but it's an option;

Best,
Jeff

On Sun, May 24, 2009 at 10:47 PM, Erik Wickstrom <address@hidden> wrote:
> Hi,
>
> When I run a command on a remote host, Fabric always has this err.  Do I
> have something mis-configured?
>
> address@hidden run: cd /home/clm/crs/; git pull origin master
> address@hidden err: stdin: is not a tty
> address@hidden out: Already up-to-date.
>
> Thanks!
> Erik
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]