Sender: nate AT cartsys DOT com Message-ID: <363E878B.466B476B@cartsys.com> Date: Mon, 02 Nov 1998 20:33:15 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: System help References: <000601be0691$344ae260$d42c1ec8 AT enterprise-z> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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