I have an expect script which I need to run every 3 mins on my management node to collect tx/rx values for each port attached to DCX Brocade SAN Switch usin
Changing interact to expect eof worked for me!
interact
expect eof
Needed to remove the exit part, because I had more statements in the bash script after the expect line (calling expect inside a bash script).
exit