From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id 6841E7F60B for ; Fri, 24 Mar 2017 15:42:39 +0100 (CET) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=oleg@okmij.org; spf=Pass smtp.mailfrom=oleg@okmij.org; spf=None smtp.helo=postmaster@mail1.g3.pair.com Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of oleg@okmij.org) identity=pra; client-ip=66.39.3.114; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="oleg@okmij.org"; x-sender="oleg@okmij.org"; x-conformance=sidf_compatible Received-SPF: Pass (mail3-smtp-sop.national.inria.fr: domain of oleg@okmij.org designates 66.39.3.114 as permitted sender) identity=mailfrom; client-ip=66.39.3.114; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="oleg@okmij.org"; x-sender="oleg@okmij.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: None (mail3-smtp-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@mail1.g3.pair.com) identity=helo; client-ip=66.39.3.114; receiver=mail3-smtp-sop.national.inria.fr; envelope-from="oleg@okmij.org"; x-sender="postmaster@mail1.g3.pair.com"; x-conformance=sidf_compatible IronPort-PHdr: =?us-ascii?q?9a23=3AcQXY8hPxUuW037iEXP0l6mtUPXoX/o7sNwtQ0KIM?= =?us-ascii?q?zox0Lf/8rarrMEGX3/hxlliBBdydsKMYzbKO+4nbGkU4qa6bt34DdJEeHzQksu?= =?us-ascii?q?4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1?= =?us-ascii?q?Ov71GonPhMiryuy+4ZPebgFHiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPde?= =?us-ascii?q?RWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbY?= =?us-ascii?q?UwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhS?= =?us-ascii?q?kJNzA37nzZhM9/g61HvR2uqQdyw5LIbIyPKPZyYrnQcc0cSGFcXshRTStBAoak?= =?us-ascii?q?YoUWC+oOI+lYpJT6qlsJqRuxGwasCfjoyj9Lg3/23K863/4mEQHc0wwtBtQDu2?= =?us-ascii?q?naotXyMacdS+G1zK/QwDXEbPNW3Db96IrSfhAmu/GMUrR9etfSx0k3Dw7Ij1Sd?= =?us-ascii?q?pZbrMj6RzOgAvXKX4/d9We+gk2Irtg98riS1ysoihYTFnJ8Zx1Ta+Sljzos4Kt?= =?us-ascii?q?u1Q1Nhb9G+CptfrSSaOpN2Qsw8R2Fovz43yrgctp66eCgG1Y4rxxHRZvCda4iH?= =?us-ascii?q?+BPjVPyLLThkg3Jlfaqzhxe08Ue+1u3xTsi53VdQoidLltTArH4A2wbO5sSaRf?= =?us-ascii?q?Zx5kKh1iyO1wDX5OFEO0c0la/DJp4mxr4/iJUTvF/EHi/1nUX2ja2Wel8j+uiy?= =?us-ascii?q?5OTreq/mqYOEN49olgH+NbwjldClDuQ9NggCRmyb+eWn1L3/5kD5W7VLjvgukq?= =?us-ascii?q?bDqpzaJMIbprS4AwBPyIoj5Qy/XH+a14EAlGQDalZMcxKOk6DkN0yIPfb5E7Kx?= =?us-ascii?q?iFOpjDotyeqCdrboB5GIKnnYjJ/ge6x84ghS0k577tFaobRbF6AMJtr3QE63us?= =?us-ascii?q?aLIAU+NlmTx+voQIF60o4RcWWMB66bdqTIvgnbtaoUP+CQadpN637GIP8/6qu2?= =?us-ascii?q?gA=3D=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CDAQCaL9VYh3IDJ0JdHgYMGQYMhAqBC?= =?us-ascii?q?wGOY5Bal1cqiSBDFAEBAQEBAQEBAQEBEgEBAQoLCQgoL4IzIIJEBDtEFiE0BUq?= =?us-ascii?q?KEQgOrCiKcYZNhHCCdoUSgjEFkF+LeoJehB2LQw2BZGyBBo1ak2U2eSw6LAhBh?= =?us-ascii?q?GmBfmaJbgEBAQ?= X-IPAS-Result: =?us-ascii?q?A0CDAQCaL9VYh3IDJ0JdHgYMGQYMhAqBCwGOY5Bal1cqiSB?= =?us-ascii?q?DFAEBAQEBAQEBAQEBEgEBAQoLCQgoL4IzIIJEBDtEFiE0BUqKEQgOrCiKcYZNh?= =?us-ascii?q?HCCdoUSgjEFkF+LeoJehB2LQw2BZGyBBo1ak2U2eSw6LAhBhGmBfmaJbgEBAQ?= X-IronPort-AV: E=Sophos;i="5.36,215,1486422000"; d="scan'208";a="217936636" Received: from mail1.g3.pair.com ([66.39.3.114]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Mar 2017 15:42:37 +0100 Received: from mail1.g3.pair.com (localhost [127.0.0.1]) by mail1.g3.pair.com (Postfix) with ESMTP id 32D143FB6EC; Fri, 24 Mar 2017 10:42:35 -0400 (EDT) Received: from Magus.localnet (g.sf.ecei.tohoku.ac.jp [130.34.192.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail1.g3.pair.com (Postfix) with ESMTPSA id 210CB582CEC; Fri, 24 Mar 2017 10:42:33 -0400 (EDT) Date: Fri, 24 Mar 2017 23:43:43 +0900 From: Oleg To: paul.lachat@edu.univ-fcomte.fr, caml-list@inria.fr, Kim.Nguyen@lri.fr Message-ID: <20170324144343.GA3951@Magus.localnet> Mail-Followup-To: Oleg , paul.lachat@edu.univ-fcomte.fr, caml-list@inria.fr, Kim.Nguyen@lri.fr MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.6.1 (2016-04-27) Subject: Re: [Caml-list] [Question] Loading .ml in memory to interact with them. > The problem here is that echo (or printf) closes the pipe_in fifo, > hence sending EOF to the ocaml toplevel. You need to force the fifo to > somehow remain open. Eons ago, back in the last century, I wrote a simple tool for that task http://okmij.org/ftp/Communications.html#sh-agents to script almost anything from really anything. I used it to drive Mathematica (on a remote machine) from Emacs and database CLI tools. (I just realized it has been 20 years...)