[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: System Calls from CLISP
- To: <clisp-list@ma2s2.mathematik.uni-karlsruhe.de>
- Subject: Re: System Calls from CLISP
- From: Bruno Haible <haible@ilog.fr>
- Date: Mon, 23 Jun 1997 15:55:19 +0200 (MET DST)
- >received: from halles.ilog.fr (halles.ilog.fr [172.16.1.96]) by ilog.ilog.fr (8.8.6/8.7.3) with ESMTP id PAA26313; Mon, 23 Jun 1997 15:55:24 +0200 (MET DST)
- In-reply-to: <9706230816.ZM18064@bs724.comm.mot.com>
- References: <9706230816.ZM18064@bs724.comm.mot.com>
Art Nuzzo <artn@bs724.comm.mot.com> writes:
> Is there any way to place system calls from inside CLISP? I am working on a
> project that would use CLISP to gather information from the operating system
> and then process the information.
Yes, this is possible. CLISP's source contains pre-made bindings to two
operating systems: Linux and AmigaOS. You can create your own binding
by { looking at | taking parts of | generate a module similar to }
clisp/src/bindings/linux/*. Doc about modules and the FFI is in
clisp/doc/foreign.txt and clisp/doc/module.txt.
And of course you can call external programs, using the functions
`run-shell-command' and `run-program'.
Bruno