using SHELL to spawn another prog...

DOS specific questions.
Post Reply
DamageX
Posts: 130
Joined: Nov 21, 2009 8:42

using SHELL to spawn another prog...

Post by DamageX »

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: 2157
Joined: Feb 26, 2007 5:32

Re: using SHELL to spawn another prog...

Post by caseih »

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: 3462
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: using SHELL to spawn another prog...

Post by marcov »

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

Re: using SHELL to spawn another prog...

Post by rugxulo »

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/
Post Reply