answering questions spilled out from gmake processes
Matt Raspberry
freebsd at nixalot.com
Fri Apr 11 06:39:47 UTC 2014
On Apr 11, 2014, at 12:25 AM, Matthias Apitz <guru at unixarea.de> wrote:
>
> 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 at 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
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
If you always want to do the same thing whenever a situation like that occurs you could use “yes”. Something like:
yes | gmake
if you always to continue or
yes “n” | gmake
to not continue. Obviously this doesn’t allow for any logic in the choice made though.
More information about the freebsd-questions
mailing list