I'm pretty new to OCaml and was trying to figure out how to call an external program from within OCaml.
I've been following the documentation here, and making the following call:
Unix.execv "cat text_file";;
This returns the following:
string array -> 'a = <fun>
How exactly do I access the returned anonymous function?
cat text_file
is a simple attempt to print the contents of the file, the command I actually want to run is a bit more complex. However, I presume that if I can get this running, I should be able to get my real program running.