christophe barbe on Wed, 9 Oct 2002 20:20:06 -0400


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

Re: [PLUG] shell without tty


On Wed, Oct 09, 2002 at 07:58:36PM -0400, Jeff Abrahamson wrote:
> Well, just to beat a dead horse, you can also fool your script by
> saying
> 
>     cat | my-script | cat
> 
> There, neither stdin nor stdout is a terminal, but it is. Of course,
> you may get block-buffered i/o. So then you end up saying
> 
>     perl -wp '{$|=1; <>;}' | my-script | cat
> 
> But unless my-script chooses to flush stdout after each line, you'll
> still get block-buffered output.

None of them works.

Christophe

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

There is no snooze button on a cat who wants breakfast.
_________________________________________________________________________
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