Change the runmode or other fields of all jobs
Paste the below code into an executable csh script. Note the use of the tcl commands vtk_transition_get and vtk_transition_set for all jobs.
For all available fields see:
vtk_transition_get $jobId arr
parray arr
For all available fields see:
vtk_transition_get $jobId arr
parray arr
#!/usr/bin/csh -f
# -*- Tcl -*- \
exec vovsh -f $0 $*:q
foreach jobid [vtk_set_get_elements [vtk_set_find System:jobs] "@ID@"] {
puts "changing runmode of $jobid"
vtk_transition_get $jobid arr
# set arr(runmode) "xterm_open"
set arr(runmode) "normal"
catch { vtk_transition_set $jobid arr }
}
Did you find this article helpful?