From owner-freebsd-questions Mon Jun 18 15:52:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from shumai.marcuscom.com (rdu26-228-058.nc.rr.com [66.26.228.58]) by hub.freebsd.org (Postfix) with ESMTP id 2E67B37B401 for ; Mon, 18 Jun 2001 15:52:15 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from localhost (marcus@localhost) by shumai.marcuscom.com (8.11.3/8.11.3) with ESMTP id f5IMp0114549; Mon, 18 Jun 2001 18:51:00 -0400 (EDT) (envelope-from marcus@marcuscom.com) X-Authentication-Warning: shumai.marcuscom.com: marcus owned process doing -bs Date: Mon, 18 Jun 2001 18:51:00 -0400 (EDT) From: Joe Clarke To: mikem Cc: Subject: Re: How to automatically pass input to interactive commands In-Reply-To: <200106182238.f5IMcQx15425@blackbox.pacbell.net> Message-ID: <20010618184852.E45610-100000@shumai.marcuscom.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You could do a make -DDISTRIB all with XFree86-4, or write an expect script to spawn the command, and answer the questions for you. Joe Clarke On Mon, 18 Jun 2001, mikem wrote: > Hi, > > I want to be able to run some interactive scripts > and programs from a script. How can I do that. > > For example: the XFree86 port. It requires that you > answer some questions before it installs. What I would > like is to be able to start a script and walk away > >from the computer. The script will run make and > answer any questions (the answers to the questions > will already be somewhere in my script) that the > installation script asks. So, when I come back a few > hours later XFree86 is compiled and ready to go. > > I'm sure there must be some answer to this. I just > haven't figured it out yet. > > Thanks, > Mike > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message