My situation is that I write Racket/Scheme code to run some simulation. Then I'd like Mathematica to call Racket to run that code file.
For example: the code file is named
foo.rkt which is a module and it provides the command `hello with some arguments as inputs.
I can run this command in a Terminal like this:
~@laptop$: racket -t foo.rkt -l racket -e '(hello ....)'
(racket will require the module
foo.rkt, then it requires the library racket/main, then finally will evaluate the function (hello x y z). at the end it exports data and plot the data)
I'd like to ask how can I make this happen in Mathematica, as I heard that Mathematica can handle external program by giving input then capture the output.
Thank you so much, chi