delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/11/21/07:13:59

From: Wilfried Hennings <nospam AT fz-juelich DOT de>
To: djgpp AT delorie DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: winXP, gcc: calling a batch file via system()
Date: Thu, 21 Nov 2002 11:58:41 +0100
Message-ID: <vgeptukf25p6pbh3oa0bqh76rrdi79rmvm@4ax.com>
References: <ln7ntu0vk669lhkk2f3erqbejl9nejvnru AT 4ax DOT com> <2110-Wed20Nov2002190106+0200-eliz AT is DOT elta DOT co DOT il>
X-Mailer: Forte Agent 1.92/32.572
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Thank you for your reply!

"Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> wrote:

> I hope this is the refreshed v2.03, the one that has several fixes
> that specifically target W2K and XP systems.  If not, please install
> the refresh.
How can I see whether it is? At least the files are dated Aug15, 2002.

> > - When "system" searches for the existence of latex2png, it abbreviates
> > the name to "latex2pn".
> 
> That's not true, to the best of my memory: the program name is not
> abbreviated when `system' looks for it along the PATH.
> 
> DJGPP's library sources are freely available, so I suggest to download
> djlsr203.zip and trace the execution of the functions on system.c and
> dosexec.c modules.  If you see the abbreviation, please point out
> where is it done.  

As far as I can see, in dosexec.c lines 182 to 207.

> 
> > - Main problem: When the batch file is called standalone, everything
> > works as it should. When it is called from the C program via system() I
> > get the message "Not enough environment space". I could not find out how
> > to increase this space: anything I do only increases the space for the
> > console window mother process but not for the daughter process. 
> 
> Invoke the batch file like this:
> 
>        command.com /e:2000 /c latex2png

That's it! Thanks! and best regards from

--
email me: change "nospam" to "w.hennings"
Dipl.-Ing.(=M.Sc.Eng.) Wilfried Hennings c./o.
Forschungszentrum (Research Center) Juelich GmbH, MUT
<http://www.fz-juelich.de/mut/index_e.html>
All opinions mentioned are strictly my own, not my employer's.

- Raw text -


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