home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2236 < prev    next >
Encoding:
Text File  |  1992-08-16  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.lang.lisp
  2. Path: sparky!uunet!stanford.edu!Csli!gandalf
  3. From: gandalf@Csli.Stanford.EDU (Juergen Wagner)
  4. Subject: Re: run-program in kcl
  5. Message-ID: <1992Aug17.075945.28178@Csli.Stanford.EDU>
  6. Keywords: run-program, common lisp, kcl, load.
  7. Organization: Stanford University CSLI
  8. References: <1992Aug13.194657.6098@cs.albany.edu> <16fpq4INN848@early-bird.think.com>
  9. Date: Mon, 17 Aug 1992 07:59:45 GMT
  10. Lines: 32
  11.  
  12. I haven't checked this in vanilla KCL but at least AKCL 1.609 supports the
  13. following functions (one runs a process simply for its side-effect, the other
  14. gets you a pipe, i.e., an i/o stream):
  15.  
  16. >(describe 'system) (describe 'run-process)
  17.  
  18. SYSTEM - external symbol in LISP package
  19. -----------------------------------------------------------------------------
  20. SYSTEM                                                             [Function]
  21.  SYSTEM
  22. Function in LISP package:
  23. Args: (string)
  24. KCL specific: Executes a Shell command as if STRING is an input to the Shell.
  25. Not all versions of KCL support this function.
  26.  
  27. -----------------------------------------------------------------------------
  28.  
  29. RUN-PROCESS - internal symbol in USER package RUN-PROCESS
  30. Function in the SI package:
  31. Args: (string)
  32.  
  33. Execute the command STRING in a subshell and return a two way stream
  34. associated to this.    Use si::fp-output-stream to get an associated
  35. output stream or si::fp-input-stream.
  36. Bugs:   It does not properly deallocate everything,
  37. so that it will fail if you call it too many times.
  38.  
  39. -----------------------------------------------------------------------------
  40.  
  41. --Juergen Wagner
  42. J_Wagner@iao.fhg.de
  43. gandalf@csli.stanford.edu
  44.