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

From: Niitsuma Hirotaka (hirotaka.niitsuma at gmail.com)
Date: Tue Jul 26 13:59:24 EDT 2011

Thanks
>From command line it works.
But from drracket does  not work


2011/7/27 Eli Barzilay <eli at barzilay.org>:
> 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.