newLISP Fan Club

Forum => newLISP in the real world => Topic started by: Darth.Severus on October 05, 2012, 08:19:02 PM

Title: Make .lsp files executable by click
Post by: Darth.Severus on October 05, 2012, 08:19:02 PM
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
Title: Re: Make .lsp files executable by click
Post by: cormullion on October 06, 2012, 02:07:10 AM
What happens if you end the script with an (exit) function?
Title: Re: Make .lsp files executable by click
Post by: Darth.Severus on October 06, 2012, 06:44:30 PM
It opens and closes it right away.
Title: Re: Make .lsp files executable by click
Post by: Darth.Severus on October 07, 2012, 11:13:56 PM
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 ...