[REBOL] Re: Basic Script Calling Commands
From: SunandaDH:aol at: 30-Oct-2003 3:55
Hi Ben,
Welcome to REBOL!
> Today, I bit the bullet, installed another hdd.
> Reinstalled RedHat with a GUI. Got Rebol/View.
>
> At the console prompts >> , what is the command to
> call any script?
>
> I tried Do %script.r and got an Access Error Message :
> cannot find ....
>
> Does this mean that I have placed Library.r into the
> wrong location?
I'm guessing here: REBOL/View is in one location and the script you want to
run is in another. In the REBOL console, try:
what-dir
to check your current directory. and then
change-dir /xxx/xxx/xxx
to change it to where the script you want to execute is.
'Do should now work -- but you may get a security warning as you are trying
to execute a script outside of the "sandbox" (ie the folder that REBOL.exe is
in, or any of its children).
If you have downloaded library.r from REBOL.org and put it in (say)
/rebol-lib, then you can:
1. do /rebol-lib/library.r -- to unpack all the scripts and build the search
indexes. Then after that:
2. do /rebol-lib/run-librarian.r -- to run the librarian front end
3. do /rebol-lib/scripts/xxxx -- to run a script in the library
Good luck!
Sunanda.