CDF II
CDF KITS
source navigation ]
diff markup ]
identifier search ]
freetext search ]
file search ]
 
Architecture: i386 ]
Version: 4.10.4 ] [ 4.10.5 ] [ 4.8.4 ] [ 4.8.4l3s ] [ 4.8.5 ] [ 4.9.0 ] [ 4.9.1 ] [ 4.9.1.hpt3 ] [ 4.9.1hpt3 ] [ 4.9.1top1 ] [ 5.0.0 ] [ 5.1.0 ] [ 5.1.0beamonly ] [ 5.1.1 ] [ 5.2.0 ] [ 5.3.0 ] [ 5.3.1 ] [ 5.3.1dsp ] [ 5.3.3 ] [ 5.3.3_nt ] [ 5.3.4 ] [ 6.1.1 ] [ 6.1.1b ] [ 6.1.2 ] [ 6.1.3 ] [ 6.1.4 ] [ 6.1.4int3 ] [ 6.1.4mc ] [ 6.1.4mc_a ] [ 6.1.6 ] [ development ]

001 #-----------------------------------------------------------------------
002 #  assigns value to a TCL variable, defaults to specified value
003 #  call: getenv name default
004 #-----------------------------------------------------------------------
005 proc getenv { Name Default} {
006   global env
007   if { [lsearch [array names env] $Name ] != -1 } { set x $env($Name) 
008   } else                                          { set x $Default    }
009 
010   puts "<<<getenv>>> : Name= $Name  Default= $Default  x=  $x"
011   return $x
012 } 
013 
014 #-----------------------------------------------------------------------
015 #  return name of the output file as specified on the command line 
016 #  assuming that ProductionExe was called  as 
017 #
018 #  "ProductionExe -o output_file"
019 #-----------------------------------------------------------------------
020 proc get_output_file { Name } {
021   set x [split  [exec ps  -ww -C $Name -o cmd] ]
022   set of ""; 
023   set i  0 ; 
024 
025   foreach xx $x { 
026     incr i ;  
027     if { $xx == "-o" } { set of [lindex $x $i ] }
028   }
029   puts "<<<get_output_file>>>: output file = $of"
030   return $of
031 }

source navigation ] diff markup ] identifier search ] freetext search ] file search ]

This page was automatically generated by the LXR engine.
The LXR team
Valid HTML 4.01!

Send problems or questions to cdfcode@fnal.gov