Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with proc

Status
Not open for further replies.

HydroBob

Technical User
Feb 28, 2002
12
0
0
US
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 .

 
I have solved the problem thanks to a post by Bong June 3, 2004. Thank you Bong!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top