Aug 22, 2012 #1 S Sumitha Sudhakaran Junior Member level 2 Joined Aug 7, 2012 Messages 24 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Location Bangalore Activity points 1,440 suppose i have a script execute.tcl written in tcl.. and i give the command as "execute.tcl new old used".. how do i extract the arguments "new", "old" and "used"??? can i use the "chomp" to remove the space after and before each argument???
suppose i have a script execute.tcl written in tcl.. and i give the command as "execute.tcl new old used".. how do i extract the arguments "new", "old" and "used"??? can i use the "chomp" to remove the space after and before each argument???
Sep 3, 2012 #2 V vijayR15 Full Member level 3 Joined Dec 10, 2011 Messages 172 Helped 69 Reputation 136 Reaction score 63 Trophy points 1,308 Activity points 2,381 Hai sumitha sudhakaran, u can get it by by the below command [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] use this in execute.tcl - - - Updated - - - https://www.edaboard.com/threads/264356/ u can refer this too..
Hai sumitha sudhakaran, u can get it by by the below command [lindex $argv 0] [lindex $argv 1] [lindex $argv 2] use this in execute.tcl - - - Updated - - - https://www.edaboard.com/threads/264356/ u can refer this too..