Compiling ocaml files from a "remote" toplevel

"[email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
I have two OCaml project directories, Controller_Dir and Controlled_Dir.
I am inside a toplevel located in Controller_Dir. From that toplevel, I would like to compile the ocaml files contained in Controlled_Dir.

If I were outside the toplevel, I would simply type :

cd Controlled_Dir
ocamlc wathever_I_want_to_compile
cd Controller_Dir


How would I "translate" this in the toplevel ? I tried Sys.command-ing
everything, but unfortunately this does not work for the cd command.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.