Make .lsp files executable by click

Started by Darth.Severus, October 05, 2012, 08:19:02 PM

Previous topic - Next topic

Darth.Severus

Hi,

I want to have .lsp files to be executable by click, like in windows. Without making a real executable out of it by using link.lsp.

I'm using roxterm and Antix-Linux (Debian/Mepis) and I am realativly new to linux. I'm using roxterm -e newlisp "$@ as "set run action". My problem now is that it prints


Quoteit works!newLISP v.10.3.4 on Linux IPv4/6 UTF-8, execute 'newlisp -h' for more info.


#!/usr/bin/newlisp
(print "it works!")


Regards,

DS

cormullion

#1
What happens if you end the script with an (exit) function?

Darth.Severus

#2
It opens and closes it right away.

Darth.Severus

#3
Sorry, I was just confused cause I thought the line
QuotenewLISP v.10.3.4 on Linux IPv4/6 UTF-8, execute 'newlisp -h' for more info.

has to appear first, cause a was working with the shell the last days, but this line appears at the end of the program. It works fine, let's forget this fast :D ...