#!/usr/bin/tclsh
-# $Id: robot.tcl,v 1.37 2003/06/10 12:08:17 adam Exp $
+# $Id: robot.tcl,v 1.38 2003/06/10 12:12:35 adam Exp $
#
proc RobotFileNext1 {area lead} {
# puts "RobotFileNext1 area=$area lead=$lead"
set f [open $fname r]
set xml [read $f]
puts "Reading $fname"
- regexp {<status>([^<]*)</status>} $xml x status
close $f
+ if {![regexp {<status>([^<]*)</status>} $xml x status]} {
+ return
+ }
if {$status == "done"} {
puts "already done"
return