35 pts.
 Linux stdout redirection to file contains “@” and stops redirecting
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

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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.

 340 pts.