Hello Experts,
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
Thanks.
Software/Hardware used:
ASKED:
July 8, 2009 2:25 PM
UPDATED:
July 15, 2009 3:11 PM
Try enclosing the whole command (assuming you don’t have any variables in the command) in single quotes to prevent the scripting language from trying to expand what it thinks is an array.