Mail Archives: djgpp/1998/11/03/09:57:18
In article <363E878B DOT 466B476B AT cartsys DOT com>,
djgpp AT delorie DOT com wrote:
> 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
>
Correction - built into COMMAND. Get a copy of 4dos (www.jpsoft.com) and that
limitation goes away. I think the default will be 512 chars, and I believe it
is configurable. Not to mention all the other advantages.
--
Chuck Falconer (Charles_Falconer AT NOSPAMapsnet DOT com)
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
- Raw text -