Article View: comp.os.msdos.programmer
Article #7462calling Perl286 from Borland C++ using spawnl
From: bmk Bradley Kuhn
Date: Tue, 05 Jan 1993 20:31
Date: Tue, 05 Jan 1993 20:31
44 lines
1919 bytes
1919 bytes
Hello.
I am forced to develop an application under MSDOS because we need to run
it on a laptop and cannot afford a 386 and/or a PC-based UN*X system.
I have developed a C program, and a perl script that must be used to
process some data just written to a file by the C program, and send the
proccessed data to LPT1:
Everything is fine, except when I attempt to call the perl script.
The spawn always fails.
spawnl(P_WAIT, "c:\\gnubin\\perl286.exe", NULL);
This is the command after I stripped it down so perl would only print it's
version info. Even like this, (i.e. without the options, script, etc),
the spawn still didn't work.
The value of errno is ENOMEM, and perror call right after spawn produces:
": No enough memory."
In the spawnl line, I replaced the call to perl286.exe with a call to
bc.exe (Borland's DOS IDE) This executable is *much* larger than perl286.exe,
and it ran fine.
We are going to attempt to use a DOS Extender tommorrow. I don't know if
this is the problem or not, since bc.exe ran fine.
Any comments/suggestions would be greatly appreciated. Do you think that
the DOS Extender will solve the problem? If not, what will?
I would have posted after I tried the DOS extender, but this is urgently
needed, and I was hoping for some responses tommorrow after I tried the
DOS Extender.
Thanks.
--
-- Bradley M. Kuhn Computer Systems Development, Inc.
INTERNET: rhlab!bkuhn@uunet.uu.net OR bkuhn@loyola.edu
UUCP: ...uunet!rhlab!bkuhn
Technical Details
Message-ID:
<509@rhlab.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!rhlab!bkuhnShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!rhlab!bkuhn From: bkuhn@rhlab.UUCP (bmk Bradley Kuhn) Newsgroups: comp.os.msdos.programmer,comp.lang.perl,comp.lang.c Subject: calling Perl286 from Borland C++ using spawnl Keywords: perl, borlandc, spawn Message-ID: <509@rhlab.UUCP> Date: 5 Jan 93 20:31:15 GMT Followup-To: poster Organization: Baltimore Rh Laboratory, Inc., Maryland Lines: 44