r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3-OLD1]

Graham
16-Jan-2010
[20885x4]
How do you access the arguments when passed in a command line?

r3apha myscript.r argument-list ?
probe system/options/args
probe system/script/args

says system object is protected
eh? no one knows?
no help on decode-cgi either ... 
is anyone using R3 for CGI ?
Gregg
16-Jan-2010
[20889x2]
I thought it was supposed to be system/script/args.
Hmmm, same protected issue here.
Graham
16-Jan-2010
[20891x5]
checking curecode ...
known issue http://www.curecode.org/rebol3/ticket.rsp?id=628&cursor=7
or not ...
can someone with a curecode account log this as an issue pls?
btw, running with r3 -s script args
doesn't help either ...
PeterWood
16-Jan-2010
[20896x4]
Curecode #1430.
Graham - I've deleted the ticket because I can get the arguments 
but do get the message - it needs a bit more investigating before 
submitting the ticket.
>> probe read/string %testLaunch.r
{REBOL []

print system/options/args
print system/script/args
ask "ok?"
}


>> launch/args %testLaunch.r "text1 text2"  

Checking for rebol.r file in /Users/peter/Code/Rebol3/



System object protected

Evaluating: /Users/peter/Code/Rebol3/testLaunch.r
text1 text2

text1 text2

ok?y

== none
I don't have time to explore further at the moment. I'l try to do 
so later if nobody else has.
Graham
16-Jan-2010
[20900]
Peter, I'm testing from shell not using 'launch
PeterWood
17-Jan-2010
[20901x4]
launch simpy uses 'call to run a shell command. Anyway here is the 
ouput of the command line attempt:

Macintosh:Rebol3 peter$ ./rebol testLaunch.r "text1 text2"

Checking for rebol.r file in /Users/peter/Code/Rebol3/


System object protected

Evaluating: testLaunch.r
text1 text2
text1 text2
ok?

Macintosh:Rebol3 peter$
It might be different under windows though.
Seems okay under Windows too:


Checking for rebol.r file in /C/Documents and Settings/Peter/Desktop/Rebol3/

Evaluating: testLaunch.r
test1 test2
test1 test2
ok?
I didn't even get the System object protected message.
Henrik
17-Jan-2010
[20905]
I get system protected under OSX, but not under Windows.
Graham
18-Jan-2010
[20906]
Well, using 

r3alpha -cs script args


I can read the args now but it does still say system protected .. 
but I guess that's okay
Carl
18-Jan-2010
[20907x4]
Cypre: on PATH evaluation... if you think it's incorrect, submit 
it as bug. Thanks!
Please submit DO 'a as bug. Thanks!
Q: "is anyone using R3 for CGI ?" 
A: The new REBOL.com website is based on R3 CGI.
Can we terminate this !REBOL3 group, rename it to !REBOL3-G1 (or 
some such name), and start a new one?  This group has too many messages, 
making it very slow.
Sunanda
19-Jan-2010
[20911]
One last message to provide a link from the end of this to the start 
of the [web-public] archive.
This topic continues here:
   http://www.rebol.org/aga-display-posts.r?post=r3wp771x1
Carl
19-Jan-2010
[20912:last]
Thanks Sunanda.