function in expect script code example
Example: function in expect script
proc do_something { a b c } {
puts "You should buy some $a, $b, and $c!\n"
}
proc do_something { a b c } {
puts "You should buy some $a, $b, and $c!\n"
}