From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 05:25:56 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 805299C0 for ; Fri, 11 Apr 2014 05:25:56 +0000 (UTC) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 40E6D147E for ; Fri, 11 Apr 2014 05:25:55 +0000 (UTC) Received: from [188.174.54.102] (helo=localhost.my.domain) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1WYTyD-000708-C9; Fri, 11 Apr 2014 07:25:45 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.my.domain (8.14.7/8.14.3) with ESMTP id s3B5PgmY001845; Fri, 11 Apr 2014 07:25:42 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.7/8.14.3/Submit) id s3B5Peki001844; Fri, 11 Apr 2014 07:25:40 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Fri, 11 Apr 2014 07:25:40 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: answering questions spilled out from gmake processes Message-ID: <20140411052540.GA1817@La-Habana> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 9.0-CURRENT r214444 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.54.102 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 05:25:56 -0000 Hello, I have a huge gmake process to compile a lot of OpenSource tools, mostly Perl modules etc. All this is driven by a master Makefile. Some of the make processes are asking questions which I do not have under my control and would require to change the fetched source trees, for example: ... Test for foo failed, do you want to continue (y/n): These questions forbit to run this with nohup in background or unattendend. I was thinking to use chat(1) or any other own written tool and run the proc in an xterm like: chat < Xterm.log | gmake were Xterm.log is the log of the X-terminal and chat is reading the question there '...want to continue (y/n)' and sends the correct answer. Any other idea? matthias -- Matthias Apitz | /"\ ASCII Ribbon Campaign: E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail WWW: http://www.unixarea.de/ | X - No proprietary attachments phone: +49-170-4527211 | / \ - Respect for open standards | en.wikipedia.org/wiki/ASCII_Ribbon_Campaign