christophe barbe on Wed, 9 Oct 2002 09:50:04 -0400


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

Re: [PLUG] shell without tty


Sorry, I was not very clear:

If in a software source, you run :
    gettextize --copy --force
with a gettext recent release, you will get at the end a message and
   Press Return to acknowledge the previous three paragraphs.

Now if you want to use the same command in an autogen.sh script, you
will get one or more of this message waiting for your input.

I know that gettextizei uses isatty to decide to ask for enter or not.
So my idea is to write a wrapper around gettextize to run it in a
context without tty (it is possible otherwise what is the point of
isatty?).

Redirecting the input and/or the output doesn't work.

Christophe

On Tue, Oct 08, 2002 at 11:49:20PM -0400, Will Dyson wrote:
> christophe barbe wrote:
> >Hi,
> >
> >I am trying to tweak a shell to invoke a program (gettextize) without
> >providing a tty. Basically gettextize check if there is a tty (with
> >isatty) and if yes bother me (and others) with a useless "Press Enter
> >..." message.
> 
> How do you know that it doesn't output those messages when stdin is not a 
> tty? If the answer is, "I tested it", then you probably know how to make 
> stdin not be a tty (make it is a pipe or file).
> 
> So the real question is: why can't you do that in whatever script you are 
> writting?
> 
> -- 
> Will Dyson
> "Back off man, I'm a scientist!" -Dr. Peter Venkman
> 
> _________________________________________________________________________
> Philadelphia Linux Users Group        --       http://www.phillylinux.org
> Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug

-- 
Christophe Barbé <christophe.barbe@ufies.org>
GnuPG FingerPrint: E0F6 FADF 2A5C F072 6AF8  F67A 8F45 2F1E D72C B41E

Cats are intented to teach us that not everything in nature has a
function. --Garrison Keillor
_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug