delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/31/06:24:14

Message-Id: <34AA1DC4.1FC2B0AC@lps.u-psud.fr>
Date: Wed, 31 Dec 1997 12:26:13 +0200
From: Daniel Taupin <taupin AT lps DOT u-psud DOT fr>
Mime-Version: 1.0
To: DJGPP List <djgpp AT delorie DOT com>, Latex2html list <latex2html AT mcs DOT anl DOT gov>,
taupin AT lps DOT u-psud DOT fr
Subject: Problems djgpp+perl+MSDOS

I'm trying to implement latex2html under DOS+djgpp environment. This requires perl which is also provided a perl54.zip
(=perl5.004).

Same results are erratic, and especially NOT reproducible, depending on the fact I use MSDOS (native below 3.11), MSDOS
window of 3.11 or MSDOS window of Win95.

Problems seems to appear each time the perl source calls:
  1. either another perl script
  2. or a DOS routine (running itself in djgpp environment).

Questions:

 1. Does djgpp+windows-dos-windows allow a C "system(...)" command which calls a djggpp routine which in turn contains a
system(...) command?
 Or are embedded system(...) commands forbidden|dangerous|discouraged?

 2. When C calls "system(some-command)", which is the default directory for "some-command"

 3. Is the perl "system(...)" command identical or similar to C's command? My feeling is that Perl (DOS Perl) works in a
different way, since it seems (seems, not always) to recognize whether "some-command" is a perl script and executes it,
although DOS is unable to execute a perl script and requires:

   perl some-command

when "some-command" is a perl script, and NOT a *.EXE, not a *.COM, not a *.BAT.

==> My impression is that MSDOS perl5004 keeps some information (some variables) when running an embedded perl script,
but this information might be destroyed by running a non-perl command inside system(...). Your opinion?

(to djgpp folks,  do not answer only to dgjpp list but also to all recipients of this message, thanks)

+ all my possible season's greetings... :-)


--
-------------------------------------------------------------------------
  Daniel Taupin, Physique des Solides, Univ. Paris-Sud, 91405 ORSAY
  E-mail : mailto:taupin AT lps DOT u-psud DOT fr
  Tél: (33) 1.69.15.60.79, Fax: (33) 1.69.15.60.86
-------------------------------------------------------------------------


- Raw text -


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