-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpaleoimager.cfm
644 lines (554 loc) · 21.3 KB
/
paleoimager.cfm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
<!---
This version of the imager relies on having
data in predictable places - that is, starting
from scratch, rather than in the middle of a
huge MorphBank-induced pileup.
It's simpler and cleaner, but does require (slightly) more
precision from users, and enough bandwidth to get everything
pushed through in a reasonable (within a day or two)
timeframe
Prerequisites:
Folders, all created and appropriately permissioned
/Image
/imgTemp/trash
/imgTemp/forDNG
/imgTemp/newDN
/ImageLZ with folder action:
Root's crontab:
sh-3.2# whoami
root
sh-3.2# crontab -l
# just a shortcut to make sure locate gets updated periodically
30 23 * * * /usr/libexec/locate.updatedb
script to create dngs from the cr2s
15,45 * * * * /ImageScripts/dng.sh
sh-3.2# cat /ImageScripts/dng.sh
LDIR=/imgTemp/forDNG ## application.makeDNGPath
DDIR=/imgTemp/newDNG ## application.newDNGPath
DNGCNV=/Applications/dngConvert ## alias to Adobe DNG converter
ls $LDIR | grep .cr2 | head -n 150 | while read FILE
do
NAME=`echo $FILE | sed -e 's/\.cr2//'`
$DNGCNV -d $DDIR $LDIR/$FILE
## and move the CR2 into the DNG directory
mv $LDIR/$FILE $DDIR
done
## and fix the permissions
chgrp -R admin $DDIR
chown -R dusty $DDIR
chmod -R 775 $DDIR
one table:
mysql> desc image;
+---------------------+--------------+------+-----+-------------------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------------------+--------------+------+-----+-------------------+----------------+
| pkey | int(11) | NO | PRI | NULL | auto_increment |
| filename | varchar(30) | NO | UNI | NULL | |
| found_cr2 | timestamp | NO | | CURRENT_TIMESTAMP | |
| checked_arctos_date | timestamp | YES | | NULL | |
| found_arctos_date | timestamp | YES | | NULL | |
| pushed_to_tacc_date | timestamp | YES | | NULL | |
| pushed_to_dng_date | timestamp | YES | | NULL | |
| found_dng | timestamp | YES | | NULL | |
| notes | varchar(255) | YES | | NULL | |
| error_date | timestamp | YES | | NULL | |
| deleted_date | timestamp | YES | | NULL | |
+---------------------+--------------+------+-----+-------------------+----------------+
11 rows in set (0.00 sec)
svn checkout http://arctos.googlecode.com/svn/arctos/imager .
--->
<!--- place for "deleted" files - do actual delete manually, or w/ cron if you're brave --->
<cfset trash="/imgTemp/trash">
<cfset imgPath="/Image">
<cfset pushedPath="/ImageMovedToTacc">
<!--- directory that the create DNG cron job runs on ---->
<cfset makeDNGPath="/imgTemp/forDNG">
<!--- directory for newly-created DNGs ---->
<cfset newDNGPath="/imgTemp/newDNG">
<!--- regular expression to filter by pre-defined valid filenames --->
<!--- remote server connection --->
<cfset remoteusername="dustylee">
<cfset remoteserver="corral.tacc.utexas.edu">
<!--- ssh rsa/dsa key for application.remoteusername --->
<cfset sshkey='/Applications/ColdFusion9/wwwroot/pw/id_rsa'>
<!--- base remote path --->
<cfset remoteroot="/corral-tacc/tacc/arctos/uam/es">
<cfif not isdefined("action")>
<cfset action="">
</cfif>
<br><a href="paleoimager.cfm?action=findAllCr2">findAllCr2</a>
<br><a href="paleoimager.cfm?action=push_to_dng">push_to_dng</a>
<br><a href="paleoimager.cfm?action=findAllDng">findAllDng</a>
<br><a href="paleoimager.cfm?action=IsImgOnArctos">IsImgOnArctos</a>
<br><a href="paleoimager.cfm?action=push_to_tacc">push_to_tacc</a>
<br><a href="paleoimager.cfm?action=cleanup">cleanup</a>
<br><a href="paleoimager.cfm?action=recovernotReallyTrashAfterAll">recovernotReallyTrashAfterAll</a>
<br><a href="paleoimager.cfm?action=yunomove">yunomove</a>
<br><a href="paleoimager.cfm?action=taccreport">taccreport</a>
<cfoutput>
<cfif action is "not_really_deleted">
<!----
for things in newDNGPath
see if they're marked as deleted
unmark if so
---->
<cfdirectory action="list" filter="*.CR2" directory="#newDNGPath#" name="d" type="file">
<cfloop query="d">
<cfset fname=listfirst(name,".")>
<cfquery name="log" datasource="p_imager">
update image set deleted_date=null, notes='still here' where filename='#fname#'
</cfquery>
<br>update image set deleted_date=null, notes='still here' where filename='#fname#'
</cfloop>
</cfif>
<cfif action is "cracks">
<cfdirectory action="list" filter="*.dng" directory="/imgTemp/newDNG" name="d" type="file">
<cfloop query="d">
<cfset fname=listfirst(name,".")>
<br>#fname#
<cfquery name="d" datasource="p_imager">
select count(*) c from image where filename='#fname#'
</cfquery>
<cfif d.c is 0>
<cfquery name="i" datasource="p_imager">
insert into image (filename,found_cr2,pushed_to_dng_date,found_dng) values ('#fname#',current_timestamp(),current_timestamp(),current_timestamp())
</cfquery>
<br>^^NEWFILE
</cfif>
</cfloop>
</cfif>
<cfif action is "yunomove">
<cfdirectory action="list" filter="*.cr2" directory="/Image" name="d" type="file">
<cfloop query="d">
<br>#name#
<cfif fileexists("/imgTemp/newDNG/#name#")>
this is a copy
<cffile action="move" source="#imgPath#/#name#" destination="#makeDNGPath#/#name#" nameconflict="overwrite">
</cfif>
</cfloop>
</cfif>
<!--- before running recovernotReallyTrashAfterAll, push the non-dnged-cr2s in /imgTemp/forDNG back to make DNGs --->
<!---- now move the stuff from probablyActallyTrash to where it can be processed ---->
<cfif action is "recovernotReallyTrashAfterAll">
<cfdirectory action="list" filter="*.dng" directory="/imgTemp/notReallyTrashAfterAll" name="d" type="file">
<cfset x=0>
<cfloop query="d">
<cfif x lt 2000>
<cfset x=x+1>
<cfset fname=listfirst(name,".")>
<br>#fname#
<!--- move the DNG ---->
<cffile action="move" source="/imgTemp/notReallyTrashAfterAll/#fname#.dng" destination="#newDNGPath#/#fname#.dng" nameconflict="overwrite">
<!---- and the raw if there is one, because ---->
<cfif fileexists("/imgTemp/notReallyTrashAfterAll/#fname#.cr2")>
<cffile action="move" source="/imgTemp/notReallyTrashAfterAll/#fname#.cr2" destination="#newDNGPath#/#fname#.cr2" nameconflict="overwrite">
</cfif>
<!--- and pretend like we just found it.... ---->
<cfquery name="d" datasource="p_imager">
update image set error_date=null,checked_arctos_date=null,found_arctos_date=null,pushed_to_tacc_date=null where filename='#fname#'
</cfquery>
</cfif>
</cfloop>
</cfif>
<cfif action is "taccreport">
<cfquery name="d" datasource="p_imager">
select
date_format(pushed_to_tacc_date,'%Y_%m_%d') as pdate,
count(*)
from
image
group by
date_format(pushed_to_tacc_date,'%Y_%m_%d')
order by
date_format(pushed_to_tacc_date,'%Y_%m_%d')
DESC
</cfquery>
<cfdump var=#d#>
</cfif>
<!------------------------------------>
<cfif action is "cleanup">
<!---
move pushed images (DNG and CR2) from #newDNGPath# to #pushedPath#
---->
<cfquery name="d" datasource="p_imager">
select
filename
from
image
where
found_arctos_date is not null and
deleted_date is null
</cfquery>
<!---
<cfdump var=#d#>
---->
<cfloop query="d">
<br>#filename#
<cftry>
<cffile action="move" source="#newDNGPath#/#filename#.dng" destination="#trash#/#filename#.dng" nameconflict="overwrite">
<cffile action="move" source="#newDNGPath#/#filename#.cr2" destination="#trash#/#filename#.cr2" nameconflict="overwrite">
<cfquery name="d" datasource="p_imager">
update image set deleted_date=current_timestamp() where filename='#filename#'
</cfquery>
<cfcatch>
<br>fail@#cfcatch.message# #cfcatch.detail#
<cfquery name="d" datasource="p_imager">
update image set notes=concat('cleanup failure on ' , current_timestamp()) where filename='#filename#'
</cfquery>
</cfcatch>
</cftry>
</cfloop>
</cfif>
<!----------------------------------------------------------->
<cfif action is "findAllDNG">
<cfdirectory action="list" filter="*.dng" directory="#newDNGPath#" name="d" type="file">
<cfloop query="d">
<cfset fileName=replace(name,".dng","","all")>
<hr>#fileName#
<cftry>
<cfquery name="new" datasource="p_imager">
update image set found_dng=current_timestamp() where filename='#fileName#'
</cfquery>
<br>woopee
<cfcatch>
<br>fail@#cfcatch.message#
</cfcatch>
</cftry>
</cfloop>
</cfif>
<!----------------------------------------------------------->
<cfif action is "push_to_tacc">
<!--- images that are
DNG+valid name
not on arctos, but checked for
not on tacc
--->
<cfquery name="d" datasource="p_imager">
select fileName from image where pushed_to_tacc_date is null and error_date is null and found_dng is not null
limit 0,40
</cfquery>
<!----
<cfdump var=#d#>
---->
<cfif d.recordcount gt 0>
<cfset dailydir=dateformat(now(),"yyyy_mm_dd")>
<!--- CF bug workaround - see http://forums.adobe.com/message/2312598 ---->
<cftry>
<cfset providerMethods = CreateObject('java','java.security.Security')>
<cfset providerMethods.removeProvider('JsafeJCE')>
<cfcatch>
<br>fail@
<!----#cfcatch.message# #cfcatch.detail#---->
</cfcatch>
</cftry>
.....switcherarrthingee success
<!--- end CF bug workaround ---->
<cfsetting requesttimeout="30000" />
<cfftp action = "open"
connection = "tacc"
key = "#sshkey#"
secure = "yes"
server = "#remoteserver#"
username = "#remoteusername#"
timeout="30000">
<cfftp action="listDir" connection="tacc" name="dirlist" directory="#remoteroot#">
<cfquery name="t" dbtype="query">
select name from dirlist where name='#dailydir#'
</cfquery>
<cfif t.recordcount is not 1>
<cfftp connection="tacc" action="createDir" directory="#remoteroot#/#dailydir#">
</cfif>
<cfftp action = "close" connection = "tacc">
<cfset t=1>
<cfset pList="">
<cfloop query="d">
<cfif not listfind(pList,filename)>
<br>popping thread for #d.fileName#
<cfif fileexists("#newDNGPath#/#d.filename#.dng")>
===========foundit!
<cfthread action="run" name="pushToTacc#t#" thisT="#t#" fn="#d.filename#">
<cftry>
<cfftp action = "open"
connection = "tacc#thisT#"
key = "#sshkey#"
secure = "yes"
server = "#remoteserver#"
username = "#remoteusername#"
timeout="30000">
<cfftp connection="tacc#thisT#"
action="putfile"
localFile="#newDNGPath#/#fn#.dng"
remoteFile="#remoteroot#/#dailydir#/#fn#.dng">
<cfftp action = "close" connection = "tacc#thisT#">
<cfquery name="p" datasource="p_imager">
update image set pushed_to_tacc_date=current_timestamp()
where filename='#fn#'
</cfquery>
<cfcatch>
<cfquery name="f" datasource="p_imager">
update image set error_date=current_timestamp(),
notes='FILENOTFOUND:: (tacc:ftp) )#ctcatch.message# #cfcatch.detail#'
where filename='#fn#'
</cfquery>
</cfcatch>
</cftry>
</cfthread>
<cfset t=t+1>
<cfset pList=listappend(pList,filename)>
<cfelse>
---------notfound
<cfquery name="f" datasource="p_imager">
update image set error_date=current_timestamp(),
notes='FILENOTFOUND:: (tacc:fileexists)' where filename='#d.filename#'
</cfquery>
</cfif>
</cfif>
</cfloop>
<!--- CF bug workaround - see http://forums.adobe.com/message/2312598 ---->
<cftry>
<cfset providerMethods.insertProviderAt(jSafeProvider,1)>
<cfcatch>-caught-</cfcatch>
</cftry>
</cfif>
</cfif>
<!------------------------------------------------------------------------------------->
<cfif action is "push_to_dng">
<cfquery name="d" datasource="p_imager">
select filename from image where pushed_to_dng_date is null limit 0,500
</cfquery>
#d.recordcount#
<cfloop query="d">
<cftry>
<cffile action="move" source="#imgPath#/#filename#.cr2" destination="#makeDNGPath#/#filename#.cr2" nameconflict="overwrite">
<cfquery name="log" datasource="p_imager">
update image set pushed_to_dng_date=current_timestamp() where
filename='#filename#'
</cfquery>
<cfcatch>
<cfset rrrr="<br>#cfcatch.message#: #cfcatch.detail#">
<cfquery name="log" datasource="p_imager">
update image set
error_date=current_timestamp(),
notes='create_dng::#cfcatch.message#: #cfcatch.detail#'
where
filename='#filename#'
</cfquery>
</cfcatch>
</cftry>
<cfflush>
</cfloop>
</cfif>
<!------------------------------------------------------------------------------------->
<cfif action is "findAllCr2">
<!--- run once/day late at night --->
<cfdirectory action="list" filter="*.cr2" directory="#imgPath#" name="d" type="file">
<cfloop query="d">
<br>#name#
<cfset fileName=replace(name,".cr2","","all")>
<cftry>
<cfquery name="new" datasource="p_imager">
insert into image (filename) values ('#fileName#')
</cfquery>
<cfcatch>
<br>fail@#cfcatch.message# #cfcatch.detail#
</cfcatch>
</cftry>
</cfloop>
</cfif>
<!------------------------------------------------------------------------------------->
<cfif action is "findRecoverNotReallyTrash">
<!----
make a new folder for things that are in the trashcan but cannot be found
mkdir /imgTemp/notReallyTrashAfterAll
chmod 777 /imgTemp/notReallyTrashAfterAll
mkdir /imgTemp/probablyActallyTrash
chmod 777 /imgTemp/probablyActallyTrash
---->
<cfset x=0>
<cfdirectory action="list" filter="*.CR2" directory="/Image" name="d" type="file">
<cfloop query="d">
<cfif x lt 100>
<cfset filename=listfirst(name,".")>
<cfset x=x+1>
#filename#
<cfhttp url="http://arctos.database.museum/component/DSFunctions.cfc?method=getMediaByExactFilename&filename=#filename#.dng&returnformat=json&queryformat=column">
</cfhttp>
<cfif cfhttp.filecontent is "1">
<cffile action="move" source="/Image/#name#" destination="/imgTemp/probablyActallyTrash/#name#" nameconflict="overwrite">
<br>moved
<cfelse>
<!--- make DNG ---->
<cffile action="move" source="/Image/#name#" destination="#makeDNGPath#/#filename#.cr2" nameconflict="overwrite">
<cfquery name="log" datasource="p_imager">
update image set pushed_to_dng_date=current_timestamp(),checked_arctos_date=null,found_arctos_date=null,
pushed_to_tacc_date=null, found_dng=null,error_date=null,deleted_date=null where
filename='#filename#'
</cfquery>
</cfif>
<!----
#filename#
<cfif cfhttp.filecontent is not "1">
<cffile action="move" source="#trash#/#name#" destination="/imgTemp/notReallyTrashAfterAll/#name#" nameconflict="overwrite">
<br>recovered DNG
<cfset crname=replace(name,".dng",".cr2")>
<cftry>
<cffile action="move" source="#trash#/#crname#" destination="/imgTemp/notReallyTrashAfterAll/#crname#" nameconflict="overwrite">
<br>recovered cr2
<cfcatch>
<br>failed cr2
</cfcatch>
</cftry>
<cfelse>
<cffile action="move" source="#trash#/#name#" destination="/imgTemp/probablyActallyTrash/#name#" nameconflict="overwrite">
<br>recovered DNG
<cfset crname=replace(name,".dng",".cr2")>
<cftry>
<cffile action="move" source="#trash#/#crname#" destination="/imgTemp/probablyActallyTrash/#crname#" nameconflict="overwrite">
<br>recoveredtrash cr2
<cfcatch>
<br>failedtrash cr2
</cfcatch>
</cftry>
</cfif>
---->
</cfif>
</cfloop>
</cfif>
<cfif action is "wtfTrash">
<br>listing #trash#...
<cfdirectory action="list" directory="#imgPath#" filter="*.cr2" name="d" type="file">
<cfloop query="d">
<cfset fName=listfirst(d.name,".")>
<br>#fName#
<cfhttp url="http://arctos.database.museum/component/DSFunctions.cfc?method=getMediaByFilename&filename=#fName#&returnformat=json&queryformat=column">
</cfhttp>
<cfif cfhttp.filecontent is 0>
<br>=====================================Did not find #fName#
<cfdirectory action="list" filter="#fName#.dng" directory="#newDNGPath#" name="ff" type="file">
<cfif ff.recordcount is 1>
<br>found in #newDNGPath#
<cfelse>
<cfdump var=#ff#>
</cfif>
<!---
/imgTemp/notReallyTrashAfterAll
---->
<cfelse>
<br>found #name#: -#cfhttp.filecontent#-
<cffile action="move" source="#imgPath#/#name#" destination="/imgTemp/trash/#name#" nameconflict="overwrite">
</cfif>
</cfloop>
</cfif>
<!------------------------------------------------------------------------------------->
<cfif action is "wtfTrash2">
<cfdirectory action="list" filter="*.dng" directory="/imgTemp/notReallyTrashAfterAll" name="d" type="file">
<cfloop query="d">
<cfset fName=replace(name,".dng","","all")>
<cfquery name="new" datasource="p_imager">
select * from image where filename='#fName#'
</cfquery>
<cfdump var=#new#>
</cfloop>
</cfif>
<!------------------------------------------------------------------------------------->
<cfif action is "wtfTrash">
<br>listing #trash#...
<cfdirectory action="list" directory="#imgPath#" filter="*.cr2" name="d" type="file">
<cfloop query="d">
<cfset fName=listfirst(d.name,".")>
<br>#fName#
<cfhttp url="http://arctos.database.museum/component/DSFunctions.cfc?method=getMediaByFilename&filename=#fName#&returnformat=json&queryformat=column">
</cfhttp>
<cfif cfhttp.filecontent is 0>
<br>=====================================Did not find #fName#
<cfdirectory action="list" filter="#fName#.dng" directory="#newDNGPath#" name="ff" type="file">
<cfif ff.recordcount is 1>
<br>found in #newDNGPath#
<cfelse>
<cfdump var=#ff#>
</cfif>
<!---
<cffile action="move" source="#trash#/#name#" destination="/imgTemp/notReallyTrashAfterAll/#name#" nameconflict="overwrite">
/imgTemp/notReallyTrashAfterAll
---->
<cfelse>
<br>found #name#: -#cfhttp.filecontent#-
<cffile action="move" source="#imgPath#/#name#" destination="/imgTemp/trash/#name#" nameconflict="overwrite">
</cfif>
</cfloop>
</cfif>
<!------------------------------------------------------------------------------------->
<cfif action is "IsImgOnArctos">
<!----
select filename from image where
found_arctos_date is null and
pushed_to_tacc_date is not null and
(
checked_arctos_date is null or
DATEDIFF(current_timestamp(),checked_arctos_date) > .01
)
limit 0,100
---->
<cfquery name="d" datasource="p_imager">
select filename from image where
found_arctos_date is null and
pushed_to_tacc_date is not null
order by checked_arctos_date asc limit 100
</cfquery>
<cfset t=1>
<cfloop query="d">
<cfset f=filename & ".dng">
<br>#filename#
<cfhttp url="http://arctos.database.museum/component/DSFunctions.cfc?method=getMediaByFilename&filename=#f#&returnformat=json&queryformat=column">
</cfhttp>
<br>filecontent=#cfhttp.fileContent#
<cfif cfhttp.filecontent is 0>
====notfound
<cfquery name="u" datasource="p_imager">
update image set
checked_arctos_date=current_timestamp()
where filename = '#filename#'
</cfquery>
<cfelseif cfhttp.filecontent gt 0>
====================================gotone
<cfquery name="u" datasource="p_imager">
update image set
checked_arctos_date=current_timestamp(),
found_arctos_date=current_timestamp()
where filename = '#filename#'
</cfquery>
</cfif>
</cfloop>
<!---
<cfthread action="run" name="t#t#" f="#f#" image="#d.filename#">
<cfhttp url="http://arctos.database.museum/component/DSFunctions.cfc?method=getMediaByFilename&filename=#f#&returnformat=json&queryformat=column">
</cfhttp>
<cfif cfhttp.filecontent is 0>
<cfquery name="u" datasource="imager">
update image set
checked_arctos_date=current_timestamp()
where image = '#image#'
</cfquery>
<cfelseif cfhttp.filecontent gt 0>
<cfquery name="u" datasource="imager">
update image set
checked_arctos_date=current_timestamp(),
found_arctos_date=current_timestamp()
where filename = '#image#'
</cfquery>
</cfif>
</cfthread>
<cfset t=t+1>
</cfloop>
<cfset l=t-1>
<cfloop from="1" to ="30" index="x">
<br>loop #x#
<cfset sleep(1000)>
<cfloop from="1" to="#l#" index="i">
<br>Thread#i#: #evaluate("t" & i & ".status")#
</cfloop>
<cfflush>
</cfloop>
--->
</cfif>
</cfoutput>