no problem, i'm figuring it out but i got stuck by a simple thing and you are the guy that can help me
it it's quite simple, i've got 2 lists now
a list of all mappings in a module
a list of all variables i entered in parameter file ( modules = MOD_A MOD_B ...
now i'm trying to compare them, if they are equal i write them out. But i don't know if i compare them right
for {set loopmod 0} {$loopmod<[llength $conf(modules)]} {incr loopmod} {
# puts "$loopmod : [lindex $conf(modules) $loopmod]"
set modulevar [lindex $conf(modules) $loopmod]
OMBCC '$modulevar'
# check how long my variable maps is, if larger then 0, they have selected specific mappings,.
if {[llength $conf(maps)] > 0} {
for {set i 0} {$i<[llength $conf(maps)]} {incr i} {
# puts "$i : [lindex $conf(maps) $i]"
# check if map is in module
set Checklist [OMBLIST MAPPINGS]
set loopmapcheck 1
foreach mapCheckName $Checklist {
# loop through all mappings in module
# compare them with ALL variables in list
# if mapname = one of the parameter list then reconcile
if {[string compare [$mapCheckName] [lindex $conf(maps) $i] ] == 0 }
puts "[lindex $conf(maps) $i]"
incr loopmapcheck
}
# puts " reconciling: $mappingName"
puts " reconciling: [lindex $conf(maps) $i]"
}
# no maps specified: reconcile all maps
} else {
set Mappinglist [OMBLIST MAPPINGS]
set loopmap 1
foreach mappingName $Mappinglist {
puts " reconciling: $mappingName"
incr loopmap
}
}
OMBCC '..'
}