home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5166 < prev    next >
Encoding:
Internet Message Format  |  1992-12-25  |  2.0 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!rutgers!vpbuild!adsi!markp
  2. From: markp@adsi.homecare.com (Mark Parr)
  3. Newsgroups: comp.unix.shell
  4. Subject: Bourne Shell Limits
  5. Message-ID: <1992Dec24.195736.6966@adsi.homecare.com>
  6. Date: 24 Dec 92 19:57:36 GMT
  7. Sender: markp@adsi.homecare.com (Mark Parr)
  8. Organization: Application Data Systems, Inc.
  9. Lines: 34
  10.  
  11. Does anyone know if there is a point in the Bourne Shell where large program
  12. application sizes can cause problems with system() calls?
  13.  
  14. 99% of our application is written using the Visual COBOL/XO Compiler.  I'm
  15. working on a C application that needs to be able to read/write from/to the
  16. COBOL files.  For this, I've written some Cobol routines that I call
  17. out of my application.  The application is linked in with the need Visual
  18. libraries and results in a program that 200k+ in executable size.
  19.  
  20. Now, in this application, I system() call out to Unix in several places.
  21. The problem occurs with a system() call using "find".  For testing purposes,
  22. I replaced the "find" with "sh" so that I could "shell" out to the prompt.
  23. When I type "find" at the prompt (this is on an IBM Risc/6000 but similar
  24. problems have been noted on our NCR 750 Tower), I get a message along the
  25. lines of:  "Find cannot execute 'pwd'".  
  26.  
  27. Now, from this shell, if I start either "ksh" or "csh" and type "find", 
  28. I get the format instructions for using find.  Another, "sh" session,
  29. however, returns the error.
  30.  
  31. Also, if I shell out to "sh" immediately after main(), find works as 
  32. expected.
  33.  
  34. Can anyone give me any ideas on what the problem might be or where to look?
  35.  
  36. Thanks,
  37. Mark Parr
  38.  
  39.  
  40. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  41.  | |-------------|  Application Data Systems     |  Phone: (601) 393-2046  | |
  42.  | |  Mark Parr  |  1930-B 1st Commercial Dr. N  |    Fax: (601) 393-6605  | |
  43.  | |-------------|  Southaven, MS 38671          |    markp@adsi.vp.com    | |
  44. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  45.