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 UAA28879; Fri, 23 Apr 2004 20:01:04 +0200 (MET DST) 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 UAA29166 for ; Fri, 23 Apr 2004 20:01:03 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i3NI12YM015934 for ; Fri, 23 Apr 2004 20:01:02 +0200 Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 1BH4z0-0006LC-00 for ; Fri, 23 Apr 2004 19:01:02 +0100 Date: Fri, 23 Apr 2004 19:01:02 +0100 Cc: caml-list@inria.fr Subject: Re: [Caml-list] Unix.chmod => what codes for what mode?! Message-ID: <20040423180102.GA24360@redhat.com> References: <20040423171634.GA887@first.in-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040423171634.GA887@first.in-berlin.de> User-Agent: Mutt/1.5.5.1+cvs20040105i From: Richard Jones X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 chmod:01 2004:99 oliver:01 bandel:01 chmod:01 755:99 755:99 type-safe:01 ltd:98 ocaml:01 caml:01 caml:01 command:98 behaviour:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, Apr 23, 2004 at 07:16:34PM +0200, Oliver Bandel wrote: > Hello, > > The Unix.chmod function is bad documented. > > Seems that I have to try out all possible values > and check the results with the command line tools? > > > Or is there any possibility to predict it's behaviour?! Almost certainly you're not using octal numbers right. The format for octal numbers in OCaml is different from C, for example: Unix.chmod filename 0o755 would have the same effect as: % chmod 755 filename Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment MOD_CAML lets you run type-safe Objective CAML programs inside the Apache webserver. http://www.merjis.com/developers/mod_caml/ ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners