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