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 TAA01449; Thu, 26 Apr 2001 19:29:55 +0200 (MET DST) 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 TAA01997 for ; Thu, 26 Apr 2001 19:29:54 +0200 (MET DST) Received: from emc.com (emcmail.lss.emc.com [168.159.48.78]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f3QHTr507022 for ; Thu, 26 Apr 2001 19:29:53 +0200 (MET DST) Received: from lub0127.lss.emc.com (lub0127 [168.159.38.127]) by emc.com (8.10.1/8.10.1) with ESMTP id f3QHPxr14951; Thu, 26 Apr 2001 13:25:59 -0400 (EDT) Received: (from gbruncot@localhost) by lub0127.lss.emc.com (8.9.3/8.9.3) id NAA19483; Thu, 26 Apr 2001 13:25:59 -0400 (EDT) Date: Thu, 26 Apr 2001 13:25:59 -0400 (EDT) Message-Id: <200104261725.NAA19483@lub0127.lss.emc.com> X-Authentication-Warning: lub0127.lss.emc.com: gbruncot set sender to gbruncot@emc.com using -f From: Georges Brun-Cottan To: zax@chello.nl CC: caml-list@inria.fr In-reply-to: <007001c0ce71$8cbbd440$984dbbd4@zaxsystem> Subject: Re: [Caml-list] copy file MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=iso-8859-1 References: <007001c0ce71$8cbbd440$984dbbd4@zaxsystem> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I'm new to caml and have compiled this cp.ml file on my windows system using > "ocamlc -o cp.exe cp.ml". > However, I do not get any response when trying to use it. Is there an error > in the file? Mark, your program works fine. But you simply forgot to invoke your function ;-) Add the following line at the end of your program and it will do what you expect: let _ = cp Sys.argv.(1) Sys.argv.(2) or let _ = cp "foo" "bar" (to copy an existing file "foo" to a file "bar".) BTW, zax@chello.nl returns a permanent mail error. You should fix that. Best, -- Georges ------------------- To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr