[REBOL] Re: 'Parse is peculiar!

2000-12-14 Thread Andrew Martin
but what if I don't want to include the in 'name? parse line1 [thru {"} copy name [to {} 4 digits {} (print name)] to end] -| Note the 'thru changed to 'to == false That doesn't make sense. 'to recognises the "" and stops just before the "" in the

[REBOL] Re: 'Parse is peculiar!

2000-12-14 Thread Andrew Martin
SpliFF wrote: line1: {Lets find "Julie1234"} parse line1 [thru {"} copy name [thru {} 4 digits {} (print name)] to end] Julie1234 == true but what if I don't want to include the in 'name? parse line1 [thru {"} copy Name to "" "" 4 digits {"} end (print Name)] Julie == true A nicer

[REBOL] Re: 'Parse is peculiar!

2000-12-14 Thread Brett Handley
Howdy, I'll address your immediate questions first then make a stab at explaining what is happening. digits: charset "0123456789" == make bitset! #{FF030... [snip] ...000} line1: {Lets find "Julie1234"} parse line1 [thru {"} copy name [thru {} 4 digits {} (print name)] to

[REBOL] Re: 'Parse is peculiar! - more details

2000-12-14 Thread Shannon Baker
Thanks Peter and Andrew, you both know your 'parse. Unfortunately your answers didn't help me with the first issue. Perhaps I need to explain the problem more clearly. I have a large collection of log files generated by a Counter-Strike games server. When a user connects a line is generated that

[REBOL] 'Parse is peculiar! - more details

2000-12-14 Thread Shannon Baker
NOTE: I think my last reply was blocked due to having one 'Re:' too many in the sunbject line. If you already read this please ignore. Message Begins Thanks Peter and Andrew, you both know your 'parse. Unfortunately your answers didn't help me with the first

[REBOL] Re: 'Parse is peculiar! - more details

2000-12-14 Thread Daan Oosterveld
Because the game doesn't check the characters being inserted in the name the grammar of the logfile is not correct and not parseable thru a left to right parser. (not with this 'parse function). This works fine if the plater does not have a name with the string {"} r-tag: [ "" thru "" ] parse

[REBOL] LF converted to CRLF when I append string to port ?

2000-12-14 Thread Hayes Philip
When I perform the following: append port s a single LF is converted into CRLF How can I prevent this from happening ? Phil. ** This email and any attachments may be confidential and the subject of legal professional

[REBOL] Re: LF converted to CRLF when I append string to port ?

2000-12-14 Thread Hayes Philip
Found the answer open all ports with binary switch !! -Original Message- From: Hayes Philip [mailto:[EMAIL PROTECTED]] Sent: 14 December 2000 12:11 To: 'Rebol List Server' Subject: [REBOL] LF converted to CRLF when I append string to port ? When I perform the following: append port

[REBOL] Re: 'Parse is peculiar! - more details

2000-12-14 Thread Ingo Hohmann
Hi Brett, here's my take, assuming that "WON:" is sure not to be in the name-string (and it is the only thing you can be sure about ... line1: {Lets find "Julie1234WON:90966776"} main-rule: [ (next-part: "") thru {"} copy name to {} some sub-rule to end ] sub-rule: [ "WON:" (print name) to end

[REBOL] Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson
Hi folks, I'd like to write a backup script that backs up the files on an FTP site. This because my cheap mass hosting has already dumped everyone's files. :-/ Anyhow, there's no shortage of recursive directory routines lying around the place. Unfortunately they don't work with web sites. The

[REBOL] Re: 'Parse is peculiar! - more details

2000-12-14 Thread Anton
Shannon, If name has a value before the parse, then there is no error and it returns true. Can you check from a fresh start? digits: charset "0123456789" line1: {Lets find "Julie1234"} parse line1 [thru {"} copy name [thru {} 4 digits {} (print name)] to end] Anton. - parse line1 [thru {"}

[REBOL] Re: Console life a bit over-expressive? Try dir-utils

2000-12-14 Thread jelinem1
Anton, Way ahead of you, although your efforts are commendable nonetheless. Actually your efforts are abit better than mine for you published yours. Although...did I post an early version of my shell.r to one of the REBOL repositories? Anyway, I took your pattern matching from the directory

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Holger Kruse
On Thu, Dec 14, 2000 at 01:42:41PM +, Mat Bettinson wrote: Hi folks, I'd like to write a backup script that backs up the files on an FTP site. This because my cheap mass hosting has already dumped everyone's files. :-/ Anyhow, there's no shortage of recursive directory routines lying

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson
Heya Holger, HK No, REBOL caches and reuses the FTP control connection across HK subsequent accesses to the same host and directory. But doesn't actually close any. Is there a way of forcing them closed? How are you supposed to implement some sort of recursive system with high-level FTP when

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Deryk Robosson
Mat Bettinson wrote: Assuming for a second that I buy this argument, and I'm really not sure I do, then how would you recommend a recursive directory scan be implemented in Rebol? You being The Fingers dare doubt the knowledge of The Holger? tsk ;) Deryk -- To unsubscribe from this list,

[REBOL] Re: 'Parse is peculiar!

2000-12-14 Thread Bob Hamilton
I hate to butt in but I just stumbled across REBOL while surfing thru an ice storm here in Texas. If you would like an example of 'A PARSE' function take a look at OBJREXX. www2.hursley.ibm.com For string handling, it's hard to beat REXX on any box. The first thing that impressed me about

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson
Heya Deryk, Assuming for a second that I buy this argument, and I'm really not sure I do, then how would you recommend a recursive directory scan be implemented in Rebol? DR You being The Fingers dare doubt the knowledge of The Holger? tsk ;) Hehe, I removed my brackets "(and I'm sure I'm

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Holger Kruse
On Thu, Dec 14, 2000 at 04:40:21PM +, Mat Bettinson wrote: Heya Holger, HK No, REBOL caches and reuses the FTP control connection across HK subsequent accesses to the same host and directory. But doesn't actually close any. Is there a way of forcing them closed? I'll double-check

[REBOL] Re: howto non_existance- check?

2000-12-14 Thread Andrew Martin
Sascha wrote: sorry, i certainly could 've seen the solution - but couldn't find it now ;-) f: func [w ] [either [ value? 'w ] [ do 'w][print "no way..."]] value? 'm == false x == 10 f x == 10 f m ** Script Error: m has no value. ** Where: f m f 'm == m f: func ['w] [either

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread sterling
Yes. FTP will close the old connection to a given host if a new one is made but in a different directory. That is also the same behavior I see here with the latest experimental (2.4.39 on Linux). I also watched my netstat and only one connection stayed active. The only situation where you

[REBOL] Re: 'Parse is peculiar! - more details

2000-12-14 Thread Allen Kamp
Why not read/lines and then use entry: parse line {"} == ["L" "09/22/2000" "-" "15:49:22:" "Usyd H4XX0R124WON:20007739" "connected," "ip" "160.34.64.112"] This will give you a consistent 8 part format. Can then use entry/1 entry/2 etc for simple access to the results. Cheers, Allen K --

[REBOL] Encryption

2000-12-14 Thread Jarrett Wold
I am wondering if anyone has tackled encryption with REBOL at all? If so, any resources, docs and etc?? -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.

[REBOL] Re: Encryption

2000-12-14 Thread Graham Chiu
On Thu, 14 Dec 2000 15:33:33 -0600 "Jarrett Wold" [EMAIL PROTECTED] wrote: I am wondering if anyone has tackled encryption with REBOL at all? If so, any resources, docs and etc?? Rebol/Express ? -- Graham Chiu -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED]

[REBOL] Enhancement Request - Rebol on new Amiga

2000-12-14 Thread Al . Bri
It would be very nice if Rebol ran on the new Amiga: http://www.amiga.com/press/zine/4-17-00/AW7.htm Andrew Martin -- -- To unsubscribe from this list, please send an email to [EMAIL PROTECTED] with "unsubscribe" in the subject, without the quotes.

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson
Heya sterling, src If you are seeing different results... like multiple command ports src open to the same host, please send as much info as you can into src feedback as a bug report so we can track down the problem. If we've established that this is not the proper behavior then absolutely, I

[REBOL] Re: Rebol and FTP (recursive stuff in particular)

2000-12-14 Thread Mat Bettinson
Heya Holger, HK I'll double-check with Sterling, but AFAIK current experimental versions HK do close the control connection first if another connection to the same HK host has to be opened. At least that is the behavior I get here. Which HK version are you using ? Command, generally. HK "cd

[REBOL] Re: Enhancement Request - Rebol on new Amiga

2000-12-14 Thread Mat Bettinson
Heya Al, ABxcn It would be very nice if Rebol ran on the new Amiga: ABxcn http://www.amiga.com/press/zine/4-17-00/AW7.htm Call my cynical (I did my stint as an Amiga advocate for a number of years) but does that page not just seem like the same pile of enthusiastic idealistic rhetoric that has

[REBOL] %build-lib.r

2000-12-14 Thread Ryan C. Christiansen
In anticipation of putting up a site with a REBOL script library, I was playing around with Carl's %build-lib.r which can be found here... http://demo.rebol.net/cgi-bin/showfile.r?file=build- lib.rkeywords=[{library}]#search-1 Do you REALIZE how sweet this script is? As long as your scripts

[REBOL] Re: 'Parse is peculiar! - more details

2000-12-14 Thread Brett Handley
Hi Ingo, Good one! I stand corrected, you don't need something evil to achieve it, just another way of looking at it. Your code fails on the fourth example though, because name has a value of none. Just making a small change, it works sub-rule: [ "WON:" (print name) to end | (

[REBOL] Re: Enhancement Request - Rebol on new Amiga

2000-12-14 Thread Anton
ABxcn It would be very nice if Rebol ran on the new Amiga: ABxcn http://www.amiga.com/press/zine/4-17-00/AW7.htm Call my cynical (I did my stint as an Amiga advocate for a number of years) but does that page not just seem like the same pile of enthusiastic idealistic rhetoric that has

[REBOL] Re: 'Parse is peculiar! - more details

2000-12-14 Thread Ingo Hohmann
Hi Brett, found an error in my last post, it didn't work for "" line1: {Lets find "Julie1234WON:90966776"} main-rule: [ (next-part: "") thru {"} copy name to {} some sub-rule to end ] sub-rule: [ "WON:" (print name) to end | (if next-part "" [if none? next-part [next-part: ""]