Date: Tue, 30 Mar 1999 17:37:46 +0200
From: Xavier Leroy <Xavier.Leroy@inria.fr>
To: Stephanie Weirich <firstname.lastname@example.org>, email@example.com
Subject: Re: Sys.command in Windows NT
In-Reply-To: <firstname.lastname@example.org>; from Stephanie Weirich on Mon, Mar 29, 1999 at 03:30:15PM -0500
> I'm unable to execute Sys.command under Windows NT.
> I get the error message:
> /c: Permission denied
> and a return value of 1.
> I'm sure that something is not configured correctly, but I'm not sure
> where to look.
First, check the environment variables COMSPEC and PATH in your
environment, because that's where the C library function system()
(which implements Sys.command) looks for the Windows command
interpreter. On my installation of NT, for instance, I have
COMSPEC set to C:\winnt\system32\cmd.exe, which is NT's command interpreter.
If COMSPEC is unset, I think system() searches in PATH for cmd.exe or
If the environment variables look OK, but the command line given to
Sys.command is longer than 1000 characters, try first with shorter
commands. Long command lines are treated specially by the OCaml
runtime, and there might be a problem there.
If that doesn't help, I don't know how to proceed. As far as I know,
there is no Windows tool that would trace the system calls performed
by OCaml, so that we know exactly what is happening.
- Xavier Leroy
This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:21 MET