Re: UNIX os stuff in lisp
From: Jim Newton (jimka_at_rdrop.com)
Date: 11/18/04
- Next message: Fred Gilham: "Re: Newbie seeking feedback"
- Previous message: Björn Lindberg: "Re: UNIX os stuff in lisp"
- In reply to: Edi Weitz: "Re: UNIX os stuff in lisp"
- Next in thread: Jim Newton: "Re: UNIX os stuff in lisp"
- Reply: Jim Newton: "Re: UNIX os stuff in lisp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 18 Nov 2004 20:05:56 +0100
hey that function sure beats the &^&* out of perl's "system"
function huh?
-jim
Edi Weitz wrote:
> On Thu, 18 Nov 2004 19:51:47 +0100, Jim Newton <jimka@rdrop.com> wrote:
>
>
>>What do people recommend to execute unix programs from within a lisp
>>program.
>>
>>I.e., how can i write a lisp function which calls a named UNIX
>>executable with a list of command line arguments, and returns an
>>object/data-structure/list which describe the exit status, lines of
>>stdout, lines of stderr, whether the program dumped a core etc....
>>
>>I'm mainly using CMUCL, and i've seen the page
>>http://common-lisp.net/project/cmucl/doc/cmu-user/unix.html#toc230
>>which appears fairly low level. Do i have to write such a function
>>as i'm describing with these low level system calls. Do i have to
>>handle forking myself and waiting and reaping the children? Or is
>>there an easier way?
>
>
> <http://common-lisp.net/project/cmucl/doc/cmu-user/extensions.html#toc46>
>
> Edi.
>
- Next message: Fred Gilham: "Re: Newbie seeking feedback"
- Previous message: Björn Lindberg: "Re: UNIX os stuff in lisp"
- In reply to: Edi Weitz: "Re: UNIX os stuff in lisp"
- Next in thread: Jim Newton: "Re: UNIX os stuff in lisp"
- Reply: Jim Newton: "Re: UNIX os stuff in lisp"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]