--do argument does not respond
[1/7] from: maximo::meteorstudios::com at: 7-Aug-2003 17:00
hi,
I've tried a myriad of methods, but I just can't get the --do option of rebol.exe to
do anything.
I mean in any way. even if I just --do "print 1" its not printed out, --do "value:
1" its not set in the script I run.
I've looked at several docs and they all say the same thing... it should work.
can anyone give me an example of a complete cmd line which works on their machine?
I'd prefer an example which loads no script. just run the expression followin --do option.
I tried with /view release and latest beta release.
-max
-----------
meteor Studios, T.D.
-----------
Never Argue with an idiot. They will bring you down to their level and beat you with
experience
[2/7] from: andrew:martin:colenso:school at: 8-Aug-2003 9:31
Max wrote:
> I've tried a myriad of methods, but I just can't get the --do option
of rebol.exe to do anything.
> I mean in any way. even if I just --do "print 1" its not printed out,
--do "value: 1" its not set in the script I run.
> I've looked at several docs and they all say the same thing... it
should work.
> can anyone give me an example of a complete cmd line which works on
their machine?
> I'd prefer an example which loads no script. just run the expression
followin --do option.
> I tried with /view release and latest beta release.
I tried your examples and failed with all my versions of Rebol:
REBOL/Base 2.6.0.3.1
REBOL/Core 2.5.5.3.1
REBOL/View 1.2.5.3.1 6-May-2002
:(
Andrew J Martin
Attendance Officer &
Information Systems Trouble Shooter
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
DISCLAIMER: Colenso High School and its Board of Trustees is not responsible (or legally
liable) for materials distributed to or acquired from user e-mail accounts. You can report
any
misuse of an e-mail account to our ICT Manager and the complaint will be investigated.
(Misuse can come in many forms, but can be viewed as any material sent/received that
indicate or suggest pornography, unethical or illegal solicitation, racism, sexism, inappropriate
language and/or other issues described in our Acceptable Use Policy.)
All outgoing messages are certified virus-free by McAfee GroupShield Exchange 5.10.285.0
Phone: +64 6 843 5095 or Fax: +64 6 833 6759 or E-mail: [postmaster--colenso--school--nz]
[3/7] from: maximo:meteorstudios at: 7-Aug-2003 17:47
> -----Original Message-----
> From: Andrew Martin [mailto:youwish]
<<quoted lines omitted: 6>>
> REBOL/Core 2.5.5.3.1
> REBOL/View 1.2.5.3.1 6-May-2002
but it should work no?
I'm asking, cause I have an idea for Ariel who wants to run a script embeded in a .bat
file, but the --do argument HAS TO work first...
cause otherwise he still needs to have a .r (or .rll file) AND a .bat file... which is
what he is trying to alleviate in the first place I think.
I'd like to build a linker and batch file packager, using sunanda's cool compiler
idea.
Maybe I should send this as a bug to feedback... its just I sometimes wonder if feedback
is now a virtual concept... back when bo used to handle it, we would get an answer with
the next day at most , with example or explanation... last time I tried by the time I
got an answer, I had forgotten that I had sent a feedback...
-MAx
[4/7] from: antonr:iinet:au at: 8-Aug-2003 14:11
I can't get --do to work on latest view beta (1.2.10) either.
This is another way to pass information into a script:
D:\Anton\Dev\Rebol\View\view1210031.exe -- "do-anton-user?: true"
Then in user.r, do this:
use [args] [if args: system/options/args [do first args]]
if value? 'do-anton-user? [
; do what you want
]
I used this in many different versions so far.
Hope it solves your problem.
Anton.
[5/7] from: nitsch-lists:netcologne at: 9-Aug-2003 2:22
Maxim Olivier-Adlhoch wrote:
>>-----Original Message-----
>>From: Andrew Martin [mailto:youwish]
<<quoted lines omitted: 9>>
>but it should work no?
>I'm asking, cause I have an idea for Ariel who wants to run a script embeded in a .bat
file, but the --do argument HAS TO work first...
in file %file.sh:
#!/bin/sh
rebol file.sh
exit
rebol[]
rebol-code
i guess *.bat have a similar way.
[6/7] from: andrew:martin:colenso:school at: 11-Aug-2003 9:51
Volker wrote:
> in file %file.sh:
> #!/bin/sh
<<quoted lines omitted: 3>>
> rebol-code
> i guess *.bat have a similar way.
In MS Windows:
Rebol Batch.bat
exit
Rebol []
print 123
halt
Andrew J Martin
Attendance Officer &
Information Systems Trouble Shooter
Colenso High School
Arnold Street, Napier.
Tel: 64-6-8310180 ext 826
Fax: 64-6-8336759
http://colenso.net/scripts/Wiki.r?AJM
http://www.colenso.school.nz/
DISCLAIMER: Colenso High School and its Board of Trustees is not responsible (or legally
liable) for materials distributed to or acquired from user e-mail accounts. You can report
any
misuse of an e-mail account to our ICT Manager and the complaint will be investigated.
(Misuse can come in many forms, but can be viewed as any material sent/received that
indicate or suggest pornography, unethical or illegal solicitation, racism, sexism, inappropriate
language and/or other issues described in our Acceptable Use Policy.)
All outgoing messages are certified virus-free by McAfee GroupShield Exchange 5.10.285.0
Phone: +64 6 843 5095 or Fax: +64 6 833 6759 or E-mail: [postmaster--colenso--school--nz]
[7/7] from: carl:rebol at: 11-Aug-2003 12:34
Here's the story on --do command line argument:
On Core 2.5.6 (official release, not experimental), latest SDK, Command, etc, it works
fine.
(See release docs. It works fine on Windows.)
On experimental Cores and Views over the last 6 months, --do was ignored.
-Carl
REBOL
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted