Make .lsp files executable by click

Q&A's, tips, howto's
Locked
Darth.Severus
Posts: 14
Joined: Mon Sep 17, 2012 3:28 am

Make .lsp files executable by click

Post 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

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Re: Make .lsp files executable by click

Post by cormullion »

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

Darth.Severus
Posts: 14
Joined: Mon Sep 17, 2012 3:28 am

Re: Make .lsp files executable by click

Post by Darth.Severus »

It opens and closes it right away.

Darth.Severus
Posts: 14
Joined: Mon Sep 17, 2012 3:28 am

Re: Make .lsp files executable by click

Post 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 ...

Locked