I'm a complete novice to the this and here's what I'm trying to do:
capture the value of
to a variable.
I tried
but it seems to be completely off base here
I am also unable to print expect_output(buffer), getting a not initialized value error. Any help would be much appreciated.
capture the value of
Code:
send "set | grep TZ"
I tried
Code:
set tzVal [send "set | grep TZ"]
puts $tzVal
I am also unable to print expect_output(buffer), getting a not initialized value error. Any help would be much appreciated.