Curious output on console
[1/8] from: tmoeller:fastmail:fm at: 2-Nov-2006 14:22
Hi all,
i need some help with a function i wrote. I use this function in another
script to scan the content of a file-library.
This is the simplified version of the function producing the same
output:
Rebol[]
get_progdest: func [] [
pa: %/c/rebol/streamlibrary/html/
dest: []
prog: []
counter: 0
foreach line read/lines pa [
counter: counter + 1
print rejoin ["Files parsed " counter " : " line ]
b: read/lines to-file join "html/" line
foreach l2 b [
res: parse/all l2 " "
if all [not find l2 "d:\dwh" not find l2 "rem" not find l2 "echo" not find l2 "db2cmd"
not find l2 "<p>" not find l2 "run task for"][
foreach ln res [
if any [find ln ".js"
find ln ".vbs"
find ln "\\"
find ln ".cmd"
find ln "psexec"
find ln "net use"
find ln "ftp "
find ln "psftp"
]
[
=20 =20=20
print ln
]
]
]
]
]
]
get_progdest
halt
These are the last lines of the output:
Files parsed 847 : programs.html
<li>Infobase_Sched.cmd</li>
<li>ftp.vbs</li>
<li>AgenturID.vbs</li>
<li>bereinigen.vbs</li>
<li>aktion.vbs</li>
<li>SAPKOST.vbs</li>
<li>ftp_apix.vbs</li>
<li>KM_03.cmd</li>
<li>incentiveExtrakt.vbs</li>
<li>user.vbs</li>
<li>Infobase_Sched_dbadmin.cmd</li>
<li>Konsistenzcheck.vbs</li>
<li>N01PMF01.CMD</li>
<li>N01PMF02.CMD</li>
K=D5=E4`=AA?=13\=E6=A9=E2=84=D1uK=17yRm2=FC=F9i2=B0*=8F=DB=91=D8=FFJ=F8=C3X=FD=A5=F5=9F=8B_=01=BCy=E1=FF=14X=C5=06=B5e=04n=B7=16=F1=18=D6T=F3T|=CB=92=03}8=F6=AD=BF=81=BA=ED=D5=DF=EC=BD3\N=D2=1B=0B=E0=96
=9F=B8=06N=05pck=BAT]H=EF=1B?=C5]|=D5=D1=D3=87j=ADUM=AD=1A>=AF
=D3=FE'=F8{R=D4%=B1=8E=F4Gs=10bRQ=B7;z=E2=8F=06=F8=96_=15\]=DDF6=D9=A3l=19=F5=EC?.=BE=F5=F2=B4=BA=8AZx=8A=D2=F4ZB=D7=DA=84S=AC=B7%=7Fy=C2g=ADO=F1=03=E3=96=AF=F0=A7=C2=9E=12=D3<7=AE=DBZ=EA=B7=F6=ADwqe=F6=01s3nc=B5=F2=C4*=8F=95=B8=EB=C5|=EF=0F=E6=F53x{Z=8F=E1O=A5
=AE=DC=A5=15=A5=DE=CA==F5=B9=EAfXX`]=97_;=F4O=CB{=FE=07=D9=D4W=C5=DF=02?lO=15k=FF=10G=85|_=1D=AD=CA=DC=86[{=A8=AD=C42=A4=80d=06
>>
What i am wondering about are the last three lines. I don't really know
where they come from. It is not part of the content.
Can anybody explain this?? I use Rebol on Windows XP SP2
Cheers
Thorsten
--
http://www.fastmail.fm - mmm... Fastmail...
[2/8] from: anton:wilddsl:au at: 3-Nov-2006 2:08
Hi Thorsten,
Can we see the input file programs.html ?
Anton.
[3/8] from: sqlab::gmx::net at: 2-Nov-2006 16:21
Which version do you use.
It looks as if you print beyond the end of your data. Maybe your memory
is garbled.
I guess you can simplify your script like
this
foreach l2 b [
if all [
parse l2 [
to ".js" to end |
to ".vbs" to end |
to "\\" to end |
to ".cmd" to end |
to "psexec" to end |
to "net use" to end |
to "ftp " to end |
to "psftp" to end |
]
not find l2 "d:\dwh"
not find l2 "rem"
not find l2 "echo"
not find l2 "db2cmd"
not find l2 "<p>"
not find l2 "run task for"
][
print ln
Thorsten Moeller wrote:
[4/8] from: tmoeller:fastmail:fm at: 2-Nov-2006 16:32
Hi Anton,
sure, it is an html file. See below:
<html>
<!--Page generated by REBOL-->
<head>
<title>BETA48 =DCbersicht Programme</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1
<style typetext/css">
html, body, p, td, li {font-family: arial, sans-serif, helvetica;
font-size: 8pt;}
h1 {font-size: 14pt; Font-Weight: bold;}
h2 {font-size: 12pt; color: #2030a0; Font-Weight: bold; width: 100%;
border-bottom: 1px solid #c09060;}
h3 {font-size: 10pt; color: #2030a0; Font-Weight: bold;}
h4 {font-size: 10pt; color: #2030a0; Font-Weight: bold;}
h5 {font-size: 10pt; Font-Weight: bold;}
tt {font-family: "courier new", monospace, courier; color: darkgreen;}
pre {font: bold 10pt "courier new", monospace, console;
background-color: #e0e0e0; padding: 16px; border: solid #a0a0a0
1px;}
.toc1 {margin-left: 1cm; font-size: 12pt; font-weight: bold;}
.toc2 {margin-left: 2cm; font-size: 10pt; Font-Weight: bold;
text-decoration: none;}
.toc3 {margin-left: 3cm; font-size: 10pt; text-decoration: none;}
.toc4 {margin-left: 4cm; font-size: 10pt; color: grey; text-decoration:
none;}
.output {color: #000060; font-weight: normal;}
.note {background-color: #f0e090; width: 100%; padding: 16px; border:
solid #a0a0a0 1px;}
.tail {color: gray; font-size: 8pt;}
.title {Font-Size: 16 pt; Font-Weight: bold;}
</style>
</head>
<body bgcolor="white" width="50%">
<center>
<table width="680" cellpadding="4" cellspacing="0" border="0">
<tr>
<td><a href="http://www.atosorigin.com"><img
src="..\images\melian_logo.gif"
border=0 alt="AtosOrigin"></a></td>
</tr>
<tr><td><img src="..\images\melianbar.gif" border=0></td></tr>
<tr height="10"><td></td></tr>
<tr><td><h1>BETA48 =DCbersicht Programme</h1>
<blockquote><b>
Author: Thorsten Moeller<br>Datum: 2-Nov-2006<br>Copyright:
Copyright (C) Thorsten Moeller
</b></blockquote>
<a href="main.html">Home=20=20=20=20
</a><p>
<h2 id="section-1">1. Programme</h2>
<blockquote>
<ul>
<li>Infobase_Sched.cmd</li>
<li>ftp.vbs</li>
<li>AgenturID.vbs</li>
<li>bereinigen.vbs</li>
<li>aktion.vbs</li>
<li>SAPKOST.vbs</li>
<li>ftp_apix.vbs</li>
<li>KM_03.cmd</li>
<li>incentiveExtrakt.vbs</li>
<li>user.vbs</li>
<li>Infobase_Sched_dbadmin.cmd</li>
<li>Konsistenzcheck.vbs</li>
<li>N01PMF01.CMD</li>
<li>N01PMF02.CMD</li>
<li>N01PMF03.CMD</li>
<li>N01PMF04.CMD</li>
<li>N01PMF05.CMD</li>
<li>N01PMF06.CMD</li>
<li>N01PMF08.CMD</li>
<li>N01PMF09.CMD</li>
<li>N02PMF04.CMD</li>
<li>N02PMF05.CMD</li>
<li>N02PMF06.CMD</li>
<li>N02PMF07.CMD</li>
<li>N02PMF09.CMD</li>
<li>Schedule.cmd</li>
<li>SAPFTP.cmd</li>
<li>qm.cmd</li>
<li>WebShop.cmd</li>
<li>emmi.cmd</li>
<li>FIEGE_DHL.cmd</li>
<li>N24PDW15.cmd</li>
<li>N26PDW35.cmd</li>
<li>N28PDW40.cmd</li>
<li>PCoach.cmd</li>
<li>info_scr.cmd</li>
<li>n99pdw05.cmd</li>
<li>n99pdw10.cmd</li>
<li>n99pdw15.cmd</li>
<li>n99pdw20.cmd</li>
<li>n99pdw22.cmd</li>
<li>N99PDW28.cmd</li>
<li>N99PDW30.cmd</li>
<li>N99PDW32.cmd</li>
<li>N99PDW34.cmd</li>
<li>N99PDW36.cmd</li>
<li>N99PDW38.cmd</li>
<li>N99PDW40.cmd</li>
</ul>
</blockquote>
</td></tr><tr>
<tr><td><img src="..\images\melianbar.gif" border=0></td></tr>
<td align="center"><span class="tail"> MakeDoc2 by
<a href="http://www.rebol.com">Rebol Technologies </a> -
2-Nov-2006</span>
</td></tr></table></center>
</body></html>
I saw that the listserver changed the characters in the cryptic lines of
the output in my previous mail. It looks like they changed to hex
format.
I think ist doesn't has something to do wit the file or its content. I
moved some files from the library and the error still occurs with
another file.
Thanks
Thorsten
On Fri, 3 Nov 2006 02:08:07 +1100, "Anton Rolls" <anton-wilddsl.net.au>
said:
> Hi Thorsten,
> Can we see the input file programs.html ?
<<quoted lines omitted: 10>>
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
--
http://www.fastmail.fm - Does exactly what it says on the tin
[5/8] from: sqlab:gmx at: 2-Nov-2006 16:34
Which version do you use.
It looks as if you print beyond the end of your data. Maybe your memory
is garbled.
I guess you can simplify your script like
this.
foreach l2 b [
if all [
parse l2 [
to ".js" to end |
to ".vbs" to end |
to "\\" to end |
to ".cmd" to end |
to "psexec" to end |
to "net use" to end |
to "ftp " to end |
to "psftp" to end
]
not parse l2 [
to "d:\dwh" to end |
to "rem" to end |
to "echo" to end |
to "db2cmd" to end |
to "<p>" to end |
to "run task for"
]
][
print ln
]
I think, older versions of Rebol got problems with the memory allocation
and the garbage collection, if you used to many anys and alls.
Thorsten Moeller wrote:
[6/8] from: tmoeller::fastmail::fm at: 2-Nov-2006 16:36
Hi,
i tried your script version, but the problem persist. I even tried
various rebol versions down to 2.3. All showing the same cryptic result.
I will try it on my Notebook tonight. Perhaps i get a different result
there.
Thorsten
On Thu, 02 Nov 2006 16:21:19 +0100, "sqlab" <sqlab-gmx.net> said:
> Which version do you use.
> It looks as if you print beyond the end of your data. Maybe your memory
<<quoted lines omitted: 118>>
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
--
http://www.fastmail.fm - Access all of your messages and folders
wherever you are
[7/8] from: gabriele::colellachiara::com at: 3-Nov-2006 12:19
Hi Thorsten,
On Thursday, November 2, 2006, 4:36:46 PM, you wrote:
TM> i tried your script version, but the problem persist. I even tried
TM> various rebol versions down to 2.3. All showing the same cryptic result.
Does it happen if you print all lines? (I.e. remove the filtering
you are doing.) What is the output of probing the result of
READ/LINES? Also, is this happening on Core 2.6.3 / View 1.3.2?
Regards,
Gabriele.
--
Gabriele Santilli <gabriele-rebol.com> --- http://www.rebol.com/
Colella Chiara software division --- http://www.colellachiara.com/
[8/8] from: tmoeller::fastmail::fm at: 3-Nov-2006 14:32
Hi Gabriele,
thanks for the hint of probing the output. it shows, that there is a
file (thumbs.db)in the library directory which is not visible, even with
the options to show all hidden files. It shows up only when i searched
for the file.
i learned that this ist some preview file of the explorer which is
automatically generated. i deleted it and now all things are running
fine. the output is now correct.
thanks to all others as well for your support.
Thorsten
On Fri, 3 Nov 2006 12:19:39 +0100, "Gabriele Santilli"
<gabriele-colellachiara.com> said:
> Hi Thorsten,
> On Thursday, November 2, 2006, 4:36:46 PM, you wrote:
<<quoted lines omitted: 12>>
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
--
http://www.fastmail.fm - A fast, anti-spam email service.
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted