Doing another script from an already running rebol script:
>> write %arg-test.r {rebol[] system/script/args}
>> do/args %arg-test.r "I don't want to argue"
== "I don't want to argue"
>> delete %arg-test.r ; clean up
>From Windows 2000 console:
D:\...\Rebol\View\rebol.exe Remind.r "Bin night" "Put bin out"
Where the Remind.r script is in the current directory.
(You can put the full path to the script if you like)
The Remind.r script gets the arguments like this (I
recommend this way.)
args: any [
system/options/args
to-block system/script/args
]
You can get the remind.r script here:
http://anton.idatam.com.au/rebol/util/remind.r
Anton.
> Can one have a rebol script with a commandline argument so that
> one can call
> it like this
>
> rebolargs.r hello="world"
>
> if so does anyone have an example
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the
subject, without the quotes.