Mail Archives: djgpp/1998/11/02/23:43:38
Jorge Ivan Meza Martinez wrote:
>
> Hello,
>
> I am using the stdlib's System to make a call to an external program,
> the Java intepreter like:
>
> sprintf ( args, "Java %s", other_string );
> system ( args );
>
> args goes Ok; but System is limited, if you use a short args it goes Ok, but
> with longs args it doesn't work; from the libc help I think that System
> would not be limited to the 126 characters, but it appears to be limited.
>
> Can you help me to use System with longer than 126 strings ?
The 126-character limit is built into DOS, and Windows doesn't (AFAIK)
provide a good way to get around it. DJGPP programs have a workaround,
but it only works when one DJGPP program calls another. "Java" is
presumably not a DJGPP-compiled program, hence the problem. No
workaround that I know of, unless "Java" supports some method of reading
its command line from a response file.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -