From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA28494; Mon, 12 Nov 2001 07:32:49 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA29056 for ; Mon, 12 Nov 2001 07:32:47 +0100 (MET) Received: from mwmx3.mweb.com (net-49-055.mweb.co.za [196.2.49.55]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fAC6Win16895 for ; Mon, 12 Nov 2001 07:32:46 +0100 (MET) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 Subject: [Caml-list] Unix and Cgi Date: Mon, 12 Nov 2001 08:32:38 +0200 Message-ID: <412AC3D29865BA4FB75DBE3DBA869B9D0AB1EB@mwmx3.mweb.com> Thread-Topic: Unix and Cgi Thread-Index: AcFrRDI7KzympyBdQXWPTednXPn0gg== From: "Willem Duminy" To: Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi Guys, I am experimenting with ocaml and cgi on Linux/Apache. A handy thing to have is the ability to execute a shell command and use the result of it in your cgi program. =20 So I used open_process_in from the Unix lib to execute the exeternal command. This all works well when run from the console - but when I run the same program from cgi - the channel_in contains no information. I thought it may have to do with the fact that the execution runs in a spearate thread - maybe cgi does not allow this. If you have experienced the same problem or have any ideas/hints, please help. Regards Willem ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr