chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] windows shell problem


From: Thomas Chust
Subject: Re: [Chicken-users] windows shell problem
Date: Mon, 05 Jan 2009 11:05:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.8.1.19) Gecko/20081227 SeaMonkey/1.1.14

felix winkelmann wrote:
> [...]
> If I pass this string (verbatim, just like it is printed here) to
> system(3):
> 
> "c:\home\chicken-trunk\bin\csi" -bnq -e "(require-library setup-api)"
> -e "(import setup-api)" "c:\...some...path...\defstruct.setup"
> 
> I get an error message that tells me that the program
> 
> "c:\home\chicken-trunk\bin\csi" -bnq -e ""
> 
> (sic) can not be found.
> [...]

Hello,

to me this sounds like system(3) is doing some quoting or string
manipulation of its own, which doesn't work. Have you tried passing the
command to a lower level Win32 API function like one from the family
CreateProcess, CreateProcessAsUser, CreateProcessWithLogonW,
CreateProcessWithTokenW? It may also help to set breakpoints on these
functions to see what kind of garbage is actually fed into the kernel by
system(3) ;-)

cu,
Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]