[racket] Call racket from racket on MacOSX, no response

From: Eli Barzilay (eli at barzilay.org)
Date: Tue Jul 26 13:32:09 EDT 2011

40 minutes ago, Niitsuma Hirotaka wrote:
> The following code works on linux.
> But on MacOSX, no response
> ------
> #lang racket
> (require racket/system)
> (display (port->string (car (process     "racket -e '(+ 10 3)'"))))

FWIW, it works for me:

Welcome to Racket v5.1.2.3.
-> (process "/Applications/Racket/bin/racket -e '(+ 10 3)'")
'(#<input-port:subprocess-stdout>
  #<output-port:subprocess-stdin>
  3041
  #<input-port:subprocess-stderr>
  #<procedure:control>)
-> (define o (car ^))
-> (port->string o)
"13\n"

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.