www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/03/09:57:18

From: cbfalconer AT my-dejanews DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: System help
Date: Tue, 03 Nov 1998 14:40:30 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 38
Message-ID: <71n4kv$6fv$1@nnrp1.dejanews.com>
References: <000601be0691$344ae260$d42c1ec8 AT enterprise-z> <363E878B DOT 466B476B AT cartsys DOT com>
NNTP-Posting-Host: 208.31.20.66
X-Article-Creation-Date: Tue Nov 03 14:40:30 1998 GMT
X-Http-User-Agent: Mozilla/3.0Gold (Win95; I)
X-Http-Proxy: 1.0 x4.dejanews.com:80 (Squid/1.1.22) for client 208.31.20.66
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019