launch (view 1.2.1)
[1/6] from: reviewer::free::fr at: 5-May-2003 22:18
Hi, I've just made 2 micro programs: first.r print "hello!" second.r launch %first.r Using View 1.2.1, I get an alert saying: "Launch can only be used by launcher programs." and first.r isn't executed. If I open a console, typing "launch %first.r" works indeed. What does it mean? Is it forbidden to launch other rebol interpretor within a rebol script? Does it work only with Pro features? Thanks, Gregory.
[2/6] from: antonr:iinet:au at: 6-May-2003 17:52
Yes, an already launched script cannot launch another script. Here is a map of the possibilities: console +------ do script one +---------- launch script 1 +---------- launch script 2 desktop +------ launch script 1 +------ launch script 2 So you can do a script in the console, it may launch another script, but that launched script cannot launch yet another. You can see the View Desktop can launch scripts, but those scripts may not launch others. It makes no difference if you have Pro or not. You can see it as a security feature. A while back I tried to get around this limitation. It works well for some cases. Maybe it works for you. See http://www.lexicon.net/anton/rebol/start.r Anton.
[3/6] from: carl::cybercraft::co::nz at: 24-Dec-2003 22:17
On 06-May-03, ReViewer wrote:
> Hi, > I've just made 2 micro programs:
<<quoted lines omitted: 8>>> within a rebol script? > Does it work only with Pro features?
I'm not sure whether it would work under Pro, but there is a trick to get around the problem for you. If you create a copy of launch in your user.r script and use that, then it'll work. (Others can explain the why;) So, add a line something like this to your user.r ... my-launch: :launch and then change second.r to... my-launch %first.r and it should work. (Well, it does for me, anyway.) Hope that helps... -- Carl Read
[4/6] from: antonr:iinet:au at: 7-May-2003 23:14
That's a very nifty trick, Carl. How did you figure that out? Anton.
[5/6] from: carl:cybercraft at: 24-Dec-2003 22:17
On 08-May-03, Anton wrote:
> That's a very nifty trick, Carl. > How did you figure that out?
I didn't - someone else here mentioned it a while back. Whether it's intentional behaviour or an oversight on RT's part would be interesting to know, though. Carl.
> Anton. >> > Using View 1.2.1, I get an alert saying: "Launch can only be used
<<quoted lines omitted: 15>>>> -- >> Carl Read
-- Carl Read
[6/6] from: rotenca:telvia:it at: 8-May-2003 13:03
> That's a very nifty trick, Carl. > How did you figure that out? > > Anton.
I discovered it in this old thread: http://www.escribe.com/internet/rebol/m27999.html the idea came to me from this message: http://www.escribe.com/internet/rebol/m27959.html to see what happens in the boot-strap time, add a "trace on" at the end of the user.r script. You can see others interesting things to happen (some about security) --- Ciao Romano
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted