From: Marco Antoniotti
Subject: Need help: running an external program from a CL.
Date: 
Message-ID: <lwso16n4af.fsf@parades.rm.cnr.it>
Hello

I need an exhaustive list of ways to call an "external" program from
CL.  I basically want to call a C/C++ or Java compiler from Common
Lisp.

So far I have (very basic: I know that many implementations have
extra keywords as well):

    #+(and allegro unix)
    EXCL:RUN-SHELL-COMMAND string

    #+(and (or kcl ibcl akcl ecl gcl) unix)
    SYSTEM string

    #+(and clisp (or unix os/2 win32))
    LISP:EXECUTE string &rest atrings

    #+(and cmu unix)
    EXT:RUN-PROGRAM program arguments

    #+(and lispworks unix)
    FOREIGN:CALL-SYSTEM-SHOWING-OUTPUT string

I need at least Lucid/Liquid on UNIX.  I would be glad to have ECLipse
and Corman Lisp as well as the other PC implementations (i.e. I have
ACL and LW for UNIX).

MCL and GENERA would also be great.

Thanks.  Please reply in private. Also, be precise about the
SYMBOL-PACKAGE.  I will post a summary for the benefit of the FAQ.

Cheers

-- 
Marco Antoniotti ===========================================
PARADES, Via San Pantaleo 66, I-00186 Rome, ITALY
tel. +39 - 06 68 10 03 17, fax. +39 - 06 68 80 79 26
http://www.parades.rm.cnr.it/~marcoxa
From: Christopher R. Barry
Subject: Re: Need help: running an external program from a CL.
Date: 
Message-ID: <87yaay8ye2.fsf@2xtreme.net>
Marco Antoniotti <·······@parades.rm.cnr.it> writes:

> I need an exhaustive list of ways to call an "external" program from
> CL.  I basically want to call a C/C++ or Java compiler from Common
> Lisp.

[...]

> MCL and GENERA would also be great.

Well with Genera nothing is really "external" to Lisp. You can execute
a Command Processor command with (CP:EXECUTE-COMMAND <command-string>),
but there is usually a way to use the Lisp versions of the Command
Processor commands themselves.

I'm not aware of any Unix or DOS shell that is available for Genera,
so the OS command you would be executing would be specific to Genera
anyways. Furthermore, there are no C++ or Java compilers for Genera
either. (There's C, FORTRAN, Prolog, maybe others--none of these are
standard....)

Christopher