0 Replies Latest reply on Jul 18, 2010 3:15 AM by kutu182

    NativeProcess and Interactive interpretator

    kutu182

      Hello,

       

      I want to create app which can interactive execute code in python interpretator

       

      info = new NativeProcessStartupInfo();
      info.executable = (new File(pythonPath.text)).resolvePath("python.exe");
      process = new NativeProcess();
      process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
      process.start(info);
      process.standardInput.writeUTFBytes("print 123");
      

       

      i not get output event while not execute this:

      process.closeInput()

       

      when i do this, process return me output data and exit process

       

      How i can do this interactively, input command and get result, and again and again, without exit process?

       

      thx