ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/util/do_action.tcl
(Generate patch)

Comparing ray/src/util/do_action.tcl (file contents):
Revision 2.6 by greg, Tue Dec 6 13:00:31 1994 UTC vs.
Revision 2.9 by greg, Tue Oct 17 21:28:06 1995 UTC

# Line 73 | Line 73 | proc run_batch {} {            # start rendering in background
73                  return
74          }
75          # Make space for PID to be written later
76 <        puts $fo "                                                            "
76 >        puts $fo \
77 > "                                                                             "
78          if {$rpview == " ALL"} {
79                  set radcom "rad"
80          } else {
# Line 173 | Line 174 | proc do_action w {             # Action screen
174          global rifname rvview rpview radvar bfname batch_pid \
175                          curmess scname mywin alldone batch_fmt hostname
176          if {"$w" == "done"} {
177 <                unset rpview bfname batch_pid mywin
177 >                unset rvview rpview bfname batch_pid mywin
178                  return
179          }
180          set bfname [file rootname [file tail $rifname]].err
# Line 222 | Line 223 | proc do_action w {             # Action screen
223                          -command {view_txt $bfname}
224          place $w.rbce -relwidth .1786 -relheight .0610 -relx .6429 -rely .5488
225          helplink $w.rbce trad action checkerr
226 <        if [file exists $bfname] {
226 >        if [file isfile $bfname] {
227                  set fi [open $bfname r]
228 <                scan [gets $fi] $batch_fmt batch_pid batch_host
229 <                gets $fi radcom
228 >                if {[scan [gets $fi] $batch_fmt batch_pid batch_host] != 2} {
229 >                        set batch_host unknown
230 >                        set radcom {}
231 >                } else {
232 >                        gets $fi radcom
233 >                }
234                  close $fi
235                  if [string match "rad -v *" $radcom] {
236                          set rpview [lindex $radcom 2]
# Line 235 | Line 240 | proc do_action w {             # Action screen
240                  if {"$hostname" != "$batch_host"} {
241                          if $alldone {
242                                  set curmess "Batch rendering finished\
243 <                                                on host $batch_host."
243 >                                                on $batch_host."
244                          } else {
245 <                                set curmess "Unknown batch rendering status\
246 <                                                on host $batch_host."
245 >                                set curmess "Batch rendering on\
246 >                                                $batch_host -- status UNKNOWN."
247                                  $w.rbst configure -state disabled
248                                  $w.rbvmb configure -state disabled
249                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines