home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / CFEXEC.ZIP / CFEXEC.DOC < prev    next >
Text File  |  1990-03-20  |  2KB  |  58 lines

  1.  
  2. CFEXEC.DOC
  3. ----------
  4.  
  5. This program was written so I could get an idea of how processes
  6. work. In this example, lines of text are read from stdin until
  7. EOF.  Lines whose first word is "CL" are assumed to be attempts to
  8. compile C source files. A child process is started with the CL.EXE
  9. command, the rest of the line containing "CL" being the arguments.
  10. I used MS C 5.1.
  11.  
  12.  
  13. CFEXEC take 2 arguments :
  14.   Arg 1>  1 = run all children together
  15.       2 = try to keep 2 children running at a time
  16.   Arg 2>  LONG = Time in milsec to wait between starts of children
  17.          in Arg 1 Mode 1. Does not apply to Arg 1 Mode 2, but
  18.          still needs to be included.
  19.  
  20.  
  21. Some ways to get CL input :
  22.   1> Type in CL command lines from keyboard.
  23.   2> Use MAKE :
  24.        A> Type MAKE /N MYFILE > MYFILE.OUT & CFEXEC 1 5000  < MYFILE.OUT
  25.  
  26.              -or-
  27.  
  28.        B> Type MAKE /N MYFILE | CFEXEC 1 5000
  29.       (This method is shown in CFILT.CMD)
  30.  
  31.  
  32. CFILT.CMD
  33. ----------
  34. Command file to automate testing of CFEXEC.
  35. CFILT takes 3 arguments :
  36.   %1> MAKE file name
  37.   %2> Arg 1 Mode for CFEXEC
  38.   %3> Arg 2 for CFEXEC
  39.  
  40. CFILT calls MAKE a second time to clean up any failed child compiles
  41. and do RC, LINK, IMPLIB, BIND, MAPSYM.
  42.  
  43.  
  44. Watch out for :
  45. ---------------
  46. If the swap drive for OS/2 and the temp drive for CL (TMP) are the same,
  47. the machine may lock up if (when) that drive is consumed.
  48.  
  49. Not good for programs with lots of errors ; all children write
  50. to screen with no serialization.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.