home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / lisp / 2222 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.9 KB

  1. Path: sparky!uunet!usc!wupost!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.lang.lisp
  4. Subject: Re: run-program in kcl
  5. Date: 14 Aug 1992 08:10:44 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 34
  8. Message-ID: <16fpq4INN848@early-bird.think.com>
  9. References: <1992Aug13.194657.6098@cs.albany.edu>
  10. NNTP-Posting-Host: gandalf.think.com
  11. Keywords: run-program, common lisp, kcl, load.
  12.  
  13. In article <1992Aug13.194657.6098@cs.albany.edu> saxena@cs.albany.edu (Tushar Saxena) writes:
  14. >There is a function in common lisp called RUN-PROGRAM in Sun Common Lisp.
  15.  
  16. This isn't a Common Lisp function, it's a Lucid extension.
  17.  
  18. >First of all, has anyone ever heard of it? Secondly, what does this
  19. >function do? 
  20.  
  21. It runs a normal Unix program, as if you'd executed it from the shell.  It
  22. can optionally connect the input and/or output streams of the program to
  23. Lisp streams.  It's fully documented in the Working Beyond the Lisp
  24. Environment section of the Advanced User's Guide chapter of the manual.
  25.  
  26. >          And lastly, what is its counterpart in kcl. I know for sure
  27. >that my version of kcl does not support it.
  28.  
  29. There probably isn't a direct counterpart in KCL, since KCL doesn't provide
  30. many extensions to CL.  The closest thing is probably calling the Unix
  31. execlp(3) function.
  32.  
  33. >Another thing that I would like to know is about the -load option of invoking
  34. >common lisp. In common lisp, you can invoke lisp by an option -load <filename>
  35. >which will load a given file into the interpreter before getting into it. I
  36. >was wondering what its counterpart in kcl is. I know (again) for sure that
  37. >my version of kcl does not do anything for -load or -l.
  38.  
  39. Common Lisp doesn't specify anything about how Lisp is started, let alone
  40. comand line options.  This is another Lucid extension.  There may not be a
  41. KCL facility like this.
  42. -- 
  43. Barry Margolin
  44. System Manager, Thinking Machines Corp.
  45.  
  46. barmar@think.com          {uunet,harvard}!think!barmar
  47.