[REBOL] Re: Selling REBOL scripts - Scott's Distributed Licence - tm
From: ryanc:iesco-dms at: 8-Jan-2002 13:42
Interesting idea Volker,
here is a little spin on it:
--- Batch file named test.bat ---
%rebol_home%\rebol test.bat
exit
rebol []
alert "test.bat executed!"
---------------------------------
You may not have a rebol home, in which case you can substitute it for the real
path.
Incidently in this case it is essentially the same as the following in unix type
systems:
--- file named test.bat on unix ---
#!/usr/bin/rebol
rebol []
alert "test.bat executed!"
-----------------------
You could also put your script in a file full of garbage (without any nulls before
the embed) and use rebol's embedding ability to hide your script. example:
--- Batch file named test.bat ---
%rebol_home%\rebol test.bat
exit
~C2Tq!r@mR 斯-H=ɶm'LJZP7mZ`H'Ѐ
[0)"鋢:SK=v@p
[rebol []do decompress
#{789C4BCC492D2A51504ACECF2D284A2D2E4E4D5128492D2ED14B4A2C5148AD48
4D2E2D494D5154020007D80D8F25000000}]~C2Tq!r@mR
斯-H=ɶm'LJZP7mZ`H'Ѐ
[0)"鋢:SK=v@p
---------------------------------
And if you go one step further, you could create a .com, .exe, or other executable
file format that works off the same principal. One potential show stopper here is
that rebol stops seaching for embedded scripts when it comes onto a null character.
--Ryan
[nitsch-lists--netcologne--de] wrote:
> RE: [REBOL] Re: Selling REBOL scripts - Scott's Distributed Licence - tm
>
> [SunandaDH--aol--com] wrote:
> >
> > Hi Scott,
> >
>
> <snip>
>
> >
> > I have no problem in many cases for people to have a copy of my code. I just
> > want as many barriers between my application and their copy of the source
> > code as possible. With C source a user has got to be very determined to
> > change the source, recompile, relink, rebuild and perhaps reinstall before
> > their change takes place,
> >
>
> if thats the problem, how about distributing your scripts compressed?
> one has to use some tricks (select the compressed 64#{..} and store it
> to a file using write %file.r #{..}).
> thats similar effort as compiling?
>
> > With Rebol as it stands now, a curious user can junk an entire application by
> > loading it into Word to take a look, and accidentally saving it back as
> > non-ASCII. I think applications that fragile are scary.
> >
>
> *grin*:
> %start-script.r :
> rebol[] do %application-script.exe
> with normal rebol-code there.
> word & co will not open.
> windows will say its broken,
> but you its a special kind which needs to be started
> by the rebol-script.
> usual users will handle it respectfully and more skilled are clever
> enough not to edit code with word? *gg*
>
> > Sunanda.
>
> -Volker
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Ryan Cole
Programmer Analyst
www.iesco-dms.com
707-468-5400
The contradiction so puzzling to the ordinary way
of thinking comes from the fact that we have to use
language to communicate our inner experience
which in its very nature transcends lingistics.
-D.T. Suzuki