[TynesideLUG] Using Common LISP for scripting on Linux

Ian Bruntlett ian.bruntlett at gmail.com
Sat Jun 29 20:12:50 UTC 2024


P.S. You'll need to install Common LISP first.

The package name on Ubuntu is "clisp" and might be the same on similar
systems...

On Sat, 29 Jun 2024 at 21:06, Ian Bruntlett <ian.bruntlett at gmail.com> wrote:

> Hi,
>
> #!/usr/bin/env clisp
> ; hello world lisp program modified to display command line arguments
> (print "Hello World")
> (format t "~&~S~&" *args*)
>
> Inspired by
> https://www.thegeekstuff.com/2009/12/lisp-hello-world-example-how-to-write-and-execute-lisp-program-on-linux-os/
>
> To get the above code to work, you'll need to:
> 1. Put it in a text file.
> 2. Use the chmod command to make the text file executable.
> 3. Run the executable from the command line.
>
> HTH,
>
>
> Ian
>
> --
> -- ACCU - Professionalism in programming - http://www.accu.org
> -- My writing - https://sites.google.com/site/ianbruntlett/
> -- Free Software page -
> https://github.com/ian-bruntlett/TECH-Manuals/blob/main/tm-free-software.md
>
>

-- 
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/
-- Free Software page -
https://github.com/ian-bruntlett/TECH-Manuals/blob/main/tm-free-software.md


More information about the Tyneside mailing list