Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » console user input when processing makefile
console user input when processing makefile [message #200718] Wed, 29 August 2007 09:48 Go to next message
Eclipse UserFriend
Originally posted by: Dmitriy.Kornilov.telma.ru

Hi,

could you help with this problem, guys?

I'm building on Red Hat Linux, Eclipse 3.2.0, CDT 3.1.1.
My project includes shell script which requires license confirmation
from user before building. Shell script 'license' simple waits for user
input ('yes' or 'no').

When I build it using make from terminal, all works fine. When I build
it using make in Eclipse, console doesn't let me to enter anything and
fails:

make -k all
../license
Do you accept license (yes/no)?
make: *** [all] Error 1

It seems, that 'read' command can not be executed from Eclipse console.

Here is my makefile:

Makefile
========
first all:
./license
g++ main.cpp -o main

license
=======
#!/bin/sh
echo "Do you accept license (yes/no)?"
read confirm

Is there any way to get user input in Eclipse console during makefile
processing?

Thank you,
Dmitry.
Re: console user input when processing makefile [message #1693725 is a reply to message #200718] Mon, 27 April 2015 19:20 Go to previous messageGo to next message
Eclipse UserFriend
Hi Dmitry,

Did you find any way to do this? I am having the same issue.

Thanks,
Heiner
icon10.gif  Re: console user input when processing makefile [message #1694062 is a reply to message #1693725] Thu, 30 April 2015 05:54 Go to previous message
Eclipse UserFriend
Hi Dmitry ,
Hello Heiner,

I having the same issue too.
Did you guys have any way to fix this problem.

Thanh you ,
Sieu
Previous Topic:eclipse freezing (fedora 21)
Next Topic:Where to put link argument using backtick to generate list of library arguments
Goto Forum:
  


Current Time: Wed May 14 12:36:27 EDT 2025

Powered by FUDForum. Page generated in 0.03904 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top