Re: UNIX os stuff in lisp
From: Jim Newton (jimka_at_rdrop.com)
Date: Thu, 18 Nov 2004 20:05:56 +0100
hey that function sure beats the &^&* out of perl's "system"
Edi Weitz wrote:
> On Thu, 18 Nov 2004 19:51:47 +0100, Jim Newton <email@example.com> wrote:
>>What do people recommend to execute unix programs from within a lisp
>>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
>>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?