From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2308 invoked by alias); 1 Oct 2006 16:20:39 -0000 Received: (qmail 2298 invoked by uid 22791); 1 Oct 2006 16:20:38 -0000 X-Spam-Check-By: sourceware.org Received: from exprod6og50.obsmtp.com (HELO exprod6og50.obsmtp.com) (64.18.1.181) by sourceware.org (qpsmtpd/0.31) with SMTP; Sun, 01 Oct 2006 16:20:35 +0000 Received: from source ([192.150.20.142]) by exprod6ob50.postini.com ([64.18.5.12]) with SMTP; Sun, 01 Oct 2006 09:20:31 PDT Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id k91GKgNW020155; Sun, 1 Oct 2006 09:20:43 -0700 (PDT) Received: from fe2.corp.adobe.com (fe2.corp.adobe.com [10.8.192.72]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id k91GKN4Z026119; Sun, 1 Oct 2006 09:20:23 -0700 (PDT) Received: from namailgen.corp.adobe.com ([10.8.192.91]) by fe2.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 1 Oct 2006 09:20:23 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Problem piping stdout Date: Sun, 01 Oct 2006 16:20:00 -0000 Message-ID: References: <1159709654.451fc3d67797a@webmail.adelaide.edu.au> <1159710843.451fc87b708f8@webmail.adelaide.edu.au> From: "John \(Eljay\) Love-Jensen" To: "Owen Lucas" , X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00006.txt.bz2 Hi Owen, You probably want to set the terminal into unbuffered mode. Google turned up... http://cboard.cprogramming.com/archive/index.php/t-27714.html Note: your question is not a GCC question, it's a general Unix question. Personally, for unbuffered interactive input at the terminal, I like to use= ncurses 5.5 . The ncurses library h= andles putting the tty into the correct mode, and restoring back to the reg= ular mode when finished. If you find that your tty has gone all pear-shaped, here's the magic comman= d to restore it to sanity: stty sane HTH, --Eljay