gabriel rosenkoetter on Wed, 9 Oct 2002 12:30:11 -0400


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

Re: [PLUG] shell without tty


On Tue, Oct 08, 2002 at 10:00:19PM -0400, christophe barbe wrote:
> 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.
> 
> Is there a way in bash or perl to do this?

In Perl, yes. Either use Expect or Term::Read{Line,Key}.

(No need to reinvent the wheel; it's already been generalized.)

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpGdRqJ6G9GO.pgp
Description: PGP signature