home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 446.lha / Popen / popen.notes < prev    next >
Text File  |  1990-12-06  |  2KB  |  42 lines

  1. Contained in the directory with these notes are sources which produce
  2. two versions of a "popen/pclose" pair for AmigaDos.  The first, "popen.c"
  3. is implemented using the ARP AsyncRun() function and seems to run fine
  4. under either AmigaDos 1.3.2 or AmigaDos 2.0.2.  The second, "popen2.c" is
  5. implemented using the new AmigaDos 2.0 CreateNewProc() and System()
  6. functions and works ONLY on AmigaDos 2.0.2.  Both versions use the standard
  7. AmigaDos PIPE: device and use the process ID to ensure that the pipe name
  8. is unique.
  9.  
  10. Also included is a program to link with either popen version for testing
  11. purposes and a couple of **real** simple programs to execute through
  12. the pipe to test the functionallity.  See the comments in "pipetst.c",
  13. "tst.c" and "cat.c" for more information.
  14.  
  15. There is a Makefile included.  You should be able to just type "lmk" and
  16. have it produce the ARP version of everything provided that you have
  17. put the arp headers in your include path.  You can also type "lmk all2"
  18. to have it make the Dos2.0 version ... but you MUST have the 2.0 include
  19. files installed!
  20.  
  21. I have been using the ARP version of popen in the RCS system for quite
  22. a while and it has worked flawlessly.  (Ray Brand put a slightly different
  23. version of popen into the RCS that was shipped everywhere because he
  24. didn't want to have any dependencies on ARP in the system).  I have
  25. also used it in a couple of other applications and the only problem I
  26. have encountered is that, Under AmigaDos 2.0, the AsyncRun function can't
  27. find the resident programs set up by the Shell (Stack, Path, and other
  28. commands were moved into the shell and are no longer stand-alone commands).
  29. Of course, the 2.0 version hasn't received as much testing but it has
  30. worked with nearly every Dos command I've got.  I would enjoy hearing from
  31. anyone who finds this stuff useful and/or informative.  If you find
  32. any problems or make improvements to this code please let me know about
  33. it!  My various addresses are:
  34.  
  35.     UseNet:        ricks@isc-br.isc-br.com or uunet!isc-br.isc-br.com!ricks
  36.     bix:        schaef
  37.     Compuserve:        70120,174
  38.     Phone:        (509) 928-3533
  39.  
  40.  
  41.     Rick Schaeffer
  42.