Hi there!
I'm trying to load a lisp file and be interpreted (like perl, ruby etc...)
I'm using the next command:
newlisp myFile.lsp OR (newlisp -c myFile.lsp)
where myFile.lsp is just:
(+ 1 2)
(with the correct paths and current directory)
This only shows the console, not the answer (3)
I don't think the -e flag is going to help me here.
how to load script?
your myFile.lsp file should look like this:
now do:
or with such short code you could just do:
Lutz
Code: Select all
(println (+ 3 4))
(exit)
Code: Select all
newlisp myFile.lsp
Code: Select all
newlisp -e '(+ 3 4)'