5

Expect Script using the split command?

view full story
linux-howto

http://www.unix.com – Hello All, I have an Expect Script that ssh'es to a server and does some stuff. In Expect there is a built-in Array Variable called "expect_out(buffer)" which contains all the output from the previous send command up until the expected output. I want to pass the array "expect_out(buffer)" to a Procedure/Function I have. After I pass the array I have a loop that I use to loop through each element line by line. I am able to successfully do this loop outside of the Procedure using that expect_out(buffer) array... So how can I convert this code below, to use a new array var (HowTos)