caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Georges Brun-Cottan <gbruncot@emc.com>
To: zax@chello.nl
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] copy file
Date: Thu, 26 Apr 2001 13:25:59 -0400 (EDT)	[thread overview]
Message-ID: <200104261725.NAA19483@lub0127.lss.emc.com> (raw)
In-Reply-To: <007001c0ce71$8cbbd440$984dbbd4@zaxsystem>



>  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


      parent reply	other threads:[~2001-04-26 17:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-26 16:54 Mark Scheffer
2001-04-26 17:10 ` Alan Schmitt
2001-04-26 17:25 ` Georges Brun-Cottan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200104261725.NAA19483@lub0127.lss.emc.com \
    --to=gbruncot@emc.com \
    --cc=caml-list@inria.fr \
    --cc=zax@chello.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).