I am trying to run a tcl/tk program without having the GUI frames pop up (no wm statements). I am trying to call several proc's but I get an error saying "invalid command name printit", or whatever I have named the proc. I am running on a Linux system.
Below is some sample code that gave the same error:
#!/usr/bin/wish
set month [exec date +%b]
set day [exec date +%d]
set year [exec date +%Y]
printit $month $day $year
proc printit {m d y} {
puts stdout "\nToday is $m $d, $y!!"
}
destroy .
Below is some sample code that gave the same error:
#!/usr/bin/wish
set month [exec date +%b]
set day [exec date +%d]
set year [exec date +%Y]
printit $month $day $year
proc printit {m d y} {
puts stdout "\nToday is $m $d, $y!!"
}
destroy .