Page 1 of 1

Make .lsp files executable by click

Posted: Sat Oct 06, 2012 3:19 am
by 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
it works!newLISP v.10.3.4 on Linux IPv4/6 UTF-8, execute 'newlisp -h' for more info.

Code: Select all

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

Re: Make .lsp files executable by click

Posted: Sat Oct 06, 2012 9:07 am
by cormullion
What happens if you end the script with an (exit) function?

Re: Make .lsp files executable by click

Posted: Sun Oct 07, 2012 1:44 am
by Darth.Severus
It opens and closes it right away.

Re: Make .lsp files executable by click

Posted: Mon Oct 08, 2012 6:13 am
by Darth.Severus
Sorry, I was just confused cause I thought the line
newLISP 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 ...