using SHELL to spawn another prog...

DOS specific questions.
DamageX
Posts: 104
Joined: Nov 21, 2009 8:42

using SHELL to spawn another prog...

Postby DamageX » Apr 21, 2016 6:50

Under win32 I can use the SHELL command to launch WGET multiple times from within my FB program to download files. This works.

Under DOS... not so much. WGET will launch (and writes its text output all over my graphic screen) but crashes frequently. I suspect the DOS version of WGET itself is also 32-bit program. Is this something that should work OK in theory? Or is launching another DPMI program pretty much guaranteed to trample my memory and cause crashes?
caseih
Posts: 1040
Joined: Feb 26, 2007 5:32

Re: using SHELL to spawn another prog...

Postby caseih » Apr 21, 2016 14:03

I suspect it will clobber your memory and crash your program.
http://www.ousob.com/ng/blinker/ng94bac.php

Is libcurl available for DOS?
marcov
Posts: 2377
Joined: Jun 16, 2005 9:45
Location: Eindhoven, NL
Contact:

Re: using SHELL to spawn another prog...

Postby marcov » Apr 21, 2016 14:14

djgpp "make" must also do this? I assume it runs fine under e.g. win9x?
rugxulo
Posts: 181
Joined: Jun 30, 2006 5:31
Location: Usono (aka, USA)
Contact:

Re: using SHELL to spawn another prog...

Postby rugxulo » May 05, 2016 1:03

marcov wrote:djgpp "make" must also do this? I assume it runs fine under e.g. win9x?


"Make" works (of course), but in the old days, there were various DPMI host bugs, hence the (long disavowed) advice of using a real-mode make. This doesn't mean that all "modern" DPMI hosts are bug-free, but they seem to work "most" of the time.

What DOS? What DPMI host? What shell? FreeDOS (2041)? CWSDPMI r7? FreeCOM (0.84-pre2 XMS_Swap)?

LFNs enabled? Other drivers (mouse, cache) loaded? Try minimizing your config setup first.

Anyways, there are a few different builds of Wget (and Curl). Which version are you using? You can try newer (unofficial) builds by Michael Kostylev here: http://mik.dyndns.pro/dos-stuff/bin/

Return to “DOS”

Who is online

Users browsing this forum: No registered users and 1 guest