Skip to content

Instantly share code, notes, and snippets.

@danking
Created December 13, 2010 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danking/738605 to your computer and use it in GitHub Desktop.
Save danking/738605 to your computer and use it in GitHub Desktop.
Welcome to Racket v5.0.2.
> (require racket)
> (define rhino-process (process "rhino"))
> (define rhino-stdin (second rhino-process))
> (define rhino-stdout (first rhino-process))
> (define rhino-stderr (fourth rhino-process))
> (display-lines (list "1 + 1") rhino-stdin)
> (port->string rhino-stdout)
C-c C-cuser break
=== context ===
/usr/local/lib/racket/collects/mzlib/port.rkt:43:4: loop
/usr/local/lib/racket/collects/racket/port.rkt:28:0: port->string
/usr/local/lib/racket/collects/racket/private/misc.rkt:74:7
> (port->string rhino-stdout)
""
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment