[TynesideLUG] Using Common LISP for scripting on Linux

Ian Bruntlett ian.bruntlett at gmail.com
Sat Jun 29 20:06:35 UTC 2024


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


More information about the Tyneside mailing list