I have a tcl/expect script that I am performing "log_user 1" to capture all the output from the script. I am performing the standard redirect and when I perform an exp_send comand with an "@" in the line, my stdout redirection stops. The tcl/expect script continues with no problem - but the output I am looking for is not there:
./expect_script.tcl >> stdout.log 2>> stdout.err
inside the expect script where the stdout redirection stops:
exp_send -s "no snmp-server community 3x@mp!3 RO 88r
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!