home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11813 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.9 KB

  1. Xref: sparky comp.os.msdos.programmer:11813 comp.lang.perl:7673 comp.lang.c:19265
  2. Path: sparky!uunet!rhlab!bkuhn
  3. From: bkuhn@rhlab.UUCP (bmk Bradley Kuhn)
  4. Newsgroups: comp.os.msdos.programmer,comp.lang.perl,comp.lang.c
  5. Subject: calling Perl286 from Borland C++ using spawnl
  6. Keywords: perl, borlandc, spawn
  7. Message-ID: <509@rhlab.UUCP>
  8. Date: 5 Jan 93 20:31:15 GMT
  9. Followup-To: poster
  10. Organization: Baltimore Rh Laboratory, Inc., Maryland
  11. Lines: 44
  12.  
  13.  
  14. Hello.
  15.  
  16. I am forced to develop an application under MSDOS because we need to run
  17. it on a laptop and cannot afford a 386 and/or a PC-based UN*X system.
  18.  
  19. I have developed a C program, and a perl script that must be used to 
  20. process some data just written to a file by the C program, and send the
  21. proccessed data to LPT1:
  22.  
  23. Everything is fine, except when I attempt to call the perl script.  
  24. The spawn always fails.
  25.  
  26. spawnl(P_WAIT, "c:\\gnubin\\perl286.exe", NULL);
  27.  
  28. This is the command after I stripped it down so perl would only print it's
  29. version info.  Even like this, (i.e. without the options, script, etc),
  30. the spawn still didn't work.
  31.  
  32. The value of errno is ENOMEM, and perror call right after spawn produces:
  33. ": No enough memory."
  34.  
  35. In the spawnl line, I replaced the call to perl286.exe with a call to 
  36. bc.exe (Borland's DOS IDE)  This executable is *much* larger than perl286.exe,
  37. and it ran fine.
  38.  
  39. We are going to attempt to use a DOS Extender tommorrow.  I don't know if
  40. this is the problem or not, since bc.exe ran fine.
  41.  
  42. Any comments/suggestions would be greatly appreciated.  Do you think that
  43. the DOS Extender will solve the problem?  If not, what will?
  44.  
  45. I would have posted after I tried the DOS extender, but this is urgently
  46. needed, and I was hoping for some responses tommorrow after I tried the
  47. DOS Extender.
  48.  
  49. Thanks.
  50.  
  51.  
  52. -- 
  53.  
  54.  -- Bradley M. Kuhn    Computer Systems Development, Inc.
  55.      INTERNET: rhlab!bkuhn@uunet.uu.net OR bkuhn@loyola.edu
  56.      UUCP:     ...uunet!rhlab!bkuhn
  57.