This is in continuation with my previous post.
communcation between racket program and python program
if i try to keep this in loop that is writing and reading continuously, It is not working again.
My Racket code :
#lang racket
(define-values (sp i o e)
(subprocess #f #f #f "C:/Python26/python.exe" "C:/Python26/hello.py"))
(define counter 40)
(let loop ()
(display "play\n" o)
(flush-output o)
(display (read-line i))
(when (> counter 0) (loop)))
My python code : hello.py
while 1:
input_var = raw_input()
print "you entered\n"