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

2009-05-25 Thread Jeff Forcier
On Mon, May 25, 2009 at 6:13 PM, Erik Wickstrom  wrote:
> Finally found it -- it was mesg in ~/.profile.  I was just looking in
> .bashrc...
>
> It's been a long weekend! :-)


Glad you found it, at any rate!

Interesting that it's enabled in profiles by default. In my
experience, most folks who need to talk between terminals just use
'talk', which can be invoked at any time and doesn't need to be
"activated". Learn something new every day.

I should probably start an FAQ for things like this, as it's bound to
come up again in the future, if (I assume) rarely. Will make a note :)

-Jeff


> On Mon, May 25, 2009 at 10:46 AM, Christian Vest Hansen
>  wrote:
>>
>> On Mon, May 25, 2009 at 6:45 PM, Erik Wickstrom 
>> wrote:
>> > I haven't tried the "-i" option because of the side effects Jeff
>> > mentioned.
>> > I've had one hell of a time trying to find the item in my .bashrc file
>> > (as
>> > well as /etc/profile, /etc/bash*) -- nothing I remove seems to do the
>> > trick.
>> >
>> > However if I login with a non-root account it seems to work without the
>> > error.
>>
>> Hmm one would typically log in with a normal user and then sudo from
>> there.
>>
>> Perhaps you have something in you /root/.profile or /root/.bashrc files?
>>
>> >
>> > Erik
>> >
>> > On Mon, May 25, 2009 at 12:24 AM, Christian Vest Hansen
>> >  wrote:
>> >>
>> >> A bit curious here.
>> >>
>> >> Erik, does adding -i change anything for you? I would have expected
>> >> that the output pipes were inherited from the environment that we use
>> >> to execute bash with in the first place, and that these somehow aren't
>> >> ttys when we use SSH commands instead of SSH shell.
>> >>
>> >> On Mon, May 25, 2009 at 5:07 AM, Jeff Forcier 
>> >> wrote:
>> >> > 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
>> >> >  wrote:
>> >> >> Hi,
>> >> >>
>> >> >> When I run a command on a remote host, Fabric always has this err.
>> >> >> Do
>> >> >> I
>> >> >> have something mis-configured?
>> >> >>
>> >> >> [...@domain.com] run: cd /home/clm/crs/; git pull origin master
>> >> >> [...@domain.com] err: stdin: is not a tty
>> >> >> [...@domain.com] out: Already up-to-date.
>> >> >>
>> >> >> Thanks!
>> >> >> Erik
>> >> >>
>> >> >> ___
>> >> >> Fab-user mailing list
>> >> >> Fab-user@nongnu.org
>> >> >> http://lists.nongnu.org/mailman/listinfo/fab-user
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> > ___
>> >> > Fab-user mailing list
>> >> > Fab-user@nongnu.org
>> >> > http://lists.nongnu.org/mailman/listinfo/fab-user
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Venlig hilsen / Kind regards,
>> >> Christian Vest Hansen.
>> >
>> >
>>
>>
>>
>> --
>> Venlig hilsen / Kind regards,
>> Christian Vest Hansen.
>
>


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-25 Thread Erik Wickstrom
Finally found it -- it was mesg in ~/.profile.  I was just looking in
.bashrc...

It's been a long weekend! :-)

On Mon, May 25, 2009 at 10:46 AM, Christian Vest Hansen <
karmazi...@gmail.com> wrote:

> On Mon, May 25, 2009 at 6:45 PM, Erik Wickstrom 
> wrote:
> > I haven't tried the "-i" option because of the side effects Jeff
> mentioned.
> > I've had one hell of a time trying to find the item in my .bashrc file
> (as
> > well as /etc/profile, /etc/bash*) -- nothing I remove seems to do the
> trick.
> >
> > However if I login with a non-root account it seems to work without the
> > error.
>
> Hmm one would typically log in with a normal user and then sudo from
> there.
>
> Perhaps you have something in you /root/.profile or /root/.bashrc files?
>
> >
> > Erik
> >
> > On Mon, May 25, 2009 at 12:24 AM, Christian Vest Hansen
> >  wrote:
> >>
> >> A bit curious here.
> >>
> >> Erik, does adding -i change anything for you? I would have expected
> >> that the output pipes were inherited from the environment that we use
> >> to execute bash with in the first place, and that these somehow aren't
> >> ttys when we use SSH commands instead of SSH shell.
> >>
> >> On Mon, May 25, 2009 at 5:07 AM, Jeff Forcier 
> wrote:
> >> > 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
> >> >  wrote:
> >> >> Hi,
> >> >>
> >> >> When I run a command on a remote host, Fabric always has this err.
> Do
> >> >> I
> >> >> have something mis-configured?
> >> >>
> >> >> [...@domain.com] run: cd /home/clm/crs/; git pull origin master
> >> >> [...@domain.com] err: stdin: is not a tty
> >> >> [...@domain.com] out: Already up-to-date.
> >> >>
> >> >> Thanks!
> >> >> Erik
> >> >>
> >> >> ___
> >> >> Fab-user mailing list
> >> >> Fab-user@nongnu.org
> >> >> http://lists.nongnu.org/mailman/listinfo/fab-user
> >> >>
> >> >>
> >> >
> >> >
> >> > ___
> >> > Fab-user mailing list
> >> > Fab-user@nongnu.org
> >> > http://lists.nongnu.org/mailman/listinfo/fab-user
> >> >
> >>
> >>
> >>
> >> --
> >> Venlig hilsen / Kind regards,
> >> Christian Vest Hansen.
> >
> >
>
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>
___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-25 Thread Christian Vest Hansen
On Mon, May 25, 2009 at 6:45 PM, Erik Wickstrom  wrote:
> I haven't tried the "-i" option because of the side effects Jeff mentioned.
> I've had one hell of a time trying to find the item in my .bashrc file (as
> well as /etc/profile, /etc/bash*) -- nothing I remove seems to do the trick.
>
> However if I login with a non-root account it seems to work without the
> error.

Hmm one would typically log in with a normal user and then sudo from there.

Perhaps you have something in you /root/.profile or /root/.bashrc files?

>
> Erik
>
> On Mon, May 25, 2009 at 12:24 AM, Christian Vest Hansen
>  wrote:
>>
>> A bit curious here.
>>
>> Erik, does adding -i change anything for you? I would have expected
>> that the output pipes were inherited from the environment that we use
>> to execute bash with in the first place, and that these somehow aren't
>> ttys when we use SSH commands instead of SSH shell.
>>
>> On Mon, May 25, 2009 at 5:07 AM, Jeff Forcier  wrote:
>> > 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
>> >  wrote:
>> >> Hi,
>> >>
>> >> When I run a command on a remote host, Fabric always has this err.  Do
>> >> I
>> >> have something mis-configured?
>> >>
>> >> [...@domain.com] run: cd /home/clm/crs/; git pull origin master
>> >> [...@domain.com] err: stdin: is not a tty
>> >> [...@domain.com] out: Already up-to-date.
>> >>
>> >> Thanks!
>> >> Erik
>> >>
>> >> ___
>> >> Fab-user mailing list
>> >> Fab-user@nongnu.org
>> >> http://lists.nongnu.org/mailman/listinfo/fab-user
>> >>
>> >>
>> >
>> >
>> > ___
>> > Fab-user mailing list
>> > Fab-user@nongnu.org
>> > http://lists.nongnu.org/mailman/listinfo/fab-user
>> >
>>
>>
>>
>> --
>> Venlig hilsen / Kind regards,
>> Christian Vest Hansen.
>
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-25 Thread Erik Wickstrom
I haven't tried the "-i" option because of the side effects Jeff mentioned.
I've had one hell of a time trying to find the item in my .bashrc file (as
well as /etc/profile, /etc/bash*) -- nothing I remove seems to do the trick.

However if I login with a non-root account it seems to work without the
error.

Erik

On Mon, May 25, 2009 at 12:24 AM, Christian Vest Hansen <
karmazi...@gmail.com> wrote:

> A bit curious here.
>
> Erik, does adding -i change anything for you? I would have expected
> that the output pipes were inherited from the environment that we use
> to execute bash with in the first place, and that these somehow aren't
> ttys when we use SSH commands instead of SSH shell.
>
> On Mon, May 25, 2009 at 5:07 AM, Jeff Forcier  wrote:
> > 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 
> wrote:
> >> Hi,
> >>
> >> When I run a command on a remote host, Fabric always has this err.  Do I
> >> have something mis-configured?
> >>
> >> [...@domain.com] run: cd /home/clm/crs/; git pull origin master
> >> [...@domain.com] err: stdin: is not a tty
> >> [...@domain.com] out: Already up-to-date.
> >>
> >> Thanks!
> >> Erik
> >>
> >> ___
> >> Fab-user mailing list
> >> Fab-user@nongnu.org
> >> http://lists.nongnu.org/mailman/listinfo/fab-user
> >>
> >>
> >
> >
> > ___
> > Fab-user mailing list
> > Fab-user@nongnu.org
> > http://lists.nongnu.org/mailman/listinfo/fab-user
> >
>
>
>
> --
> Venlig hilsen / Kind regards,
> Christian Vest Hansen.
>
___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-25 Thread Christian Vest Hansen
A bit curious here.

Erik, does adding -i change anything for you? I would have expected
that the output pipes were inherited from the environment that we use
to execute bash with in the first place, and that these somehow aren't
ttys when we use SSH commands instead of SSH shell.

On Mon, May 25, 2009 at 5:07 AM, Jeff Forcier  wrote:
> 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  
> wrote:
>> Hi,
>>
>> When I run a command on a remote host, Fabric always has this err.  Do I
>> have something mis-configured?
>>
>> [...@domain.com] run: cd /home/clm/crs/; git pull origin master
>> [...@domain.com] err: stdin: is not a tty
>> [...@domain.com] out: Already up-to-date.
>>
>> Thanks!
>> Erik
>>
>> ___
>> Fab-user mailing list
>> Fab-user@nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>
>>
>
>
> ___
> Fab-user mailing list
> Fab-user@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-24 Thread s s

Sleep, NOW, or we're going to have to put you out of your misery...

S

On May 24, 2009, at 11:09 PM, Jeff Forcier wrote:

On Sun, May 24, 2009 at 11:08 PM, Jeff Forcier   
wrote:
See for example http://platonic.techfiz.info/2008/10/13/stdin-is-not-a-tty/ 
 .


Blast, that's actually not the link I intended to paste, but this
other, more informative one:

http://www.hjackson.org/blog/archives/2008/10/18/ssh-stdin-is-not-a-tty


Clearly, I need to stop replying to the mailing list when I've been up
for almost 24 hours. THIS, I swear on my name, is the informative
link:

http://shreevatsa.wordpress.com/2006/03/16/stderr-is-not-a-tty-where-are-you/

Apologies for the spam,
Jeff


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user




___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-24 Thread Jeff Forcier
On Sun, May 24, 2009 at 11:08 PM, Jeff Forcier  wrote:
>> See for example http://platonic.techfiz.info/2008/10/13/stdin-is-not-a-tty/ .
>
> Blast, that's actually not the link I intended to paste, but this
> other, more informative one:
>
> http://www.hjackson.org/blog/archives/2008/10/18/ssh-stdin-is-not-a-tty

Clearly, I need to stop replying to the mailing list when I've been up
for almost 24 hours. THIS, I swear on my name, is the informative
link:

http://shreevatsa.wordpress.com/2006/03/16/stderr-is-not-a-tty-where-are-you/

Apologies for the spam,
Jeff


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-24 Thread Jeff Forcier
> See for example http://platonic.techfiz.info/2008/10/13/stdin-is-not-a-tty/ .

Blast, that's actually not the link I intended to paste, but this
other, more informative one:

http://www.hjackson.org/blog/archives/2008/10/18/ssh-stdin-is-not-a-tty

-Jeff


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user


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

2009-05-24 Thread Jeff Forcier
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  wrote:
> Hi,
>
> When I run a command on a remote host, Fabric always has this err.  Do I
> have something mis-configured?
>
> [...@domain.com] run: cd /home/clm/crs/; git pull origin master
> [...@domain.com] err: stdin: is not a tty
> [...@domain.com] out: Already up-to-date.
>
> Thanks!
> Erik
>
> ___
> Fab-user mailing list
> Fab-user@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/fab-user
>
>


___
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user