Shell.call fails in Shell_sys.Background mode.

Guillaume Yziquel <[email protected]> Mon, 17 Aug 2009 23:43:32 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
Hello.

I stumbled on a weird behaviour:

Using Shell.call ~mode:Shell_sys.Background [Shell.cmd "ant" ["run"]] to 
launch a Java server serving some XML stuff, the command fails.

However, if I remove the Shell_sys.Background argument, and have it 
execute in the same group as the OCaml toploop, it works fine.

Is it me, or did such a thing happen to someone else before?

Guillaume Yziquel.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july