[nbdev] Re: Take Input from the output window as input

  • From: Jaroslav Havlin < >
  • To:
  • Subject: [nbdev] Re: Take Input from the output window as input
  • Date: Wed, 17 Oct 2012 09:54:25 +0200
  • Organization: Oracle Corporation

Hello,

doesn't your DSL script use some output buffering?
For example, Python has property PYTHONUNBUFFERED that affects this. It could be something similar.

Regards,
 Jarda


On 16.10.2012 17:10, sudeephazra wrote:
OK. So now I got it working but not completely  [Shocked]
I am able to execute the program and get the user input and pass it to the 
running process in such a way that my DSL script is able to recognize the 
input. Thats the good part of the story.
Here comes the stupid part:
Suppose my script is supposed to print something on the first line and then 
wait for the user input on the next line, the current scenario is that my 
ExtExecution service just waits for the user input before printing the first 
line. So if I provide the input, the scripts processes it and then executes 
the whole script.
Please help me identify how to make the ExtExecution execute the script line 
by line rather than taking all the user input even before the first lines are 
executed.


Code:

print "Enter your name: "
get myName
print myName




What happens in this case is

[Image: http://forums.netbeans.org/files/screenshot001_185.png ;]

Any help would be much appreciated..




Attachments:
http://forums.netbeans.org//files/screenshot001_185.png



[nbdev] Take Input from the output window as input

sudeephazra 10/02/2012

[nbdev] Re: Take Input from the output window as input

Petr Hejl 10/08/2012

[nbdev] Take Input from the output window as input

sudeephazra 10/10/2012

[nbdev] Take Input from the output window as input

sudeephazra 10/16/2012

[nbdev] Re: Take Input from the output window as input

Jaroslav Havlin 10/17/2012

[nbdev] Take Input from the output window as input

sudeephazra 10/17/2012

[nbdev] Re: Take Input from the output window as input

Jaroslav Havlin 10/18/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close