I have a shell script to run an tcl/expect script where I want to redirect the stdout and stderr to external files:
Code:
./expect_script.tcl >> stdout.log 2>> stderr.log
The tcl/expect script starts to run and starts to redirect stdout to the log correctly until I get to the following line in my tcl/expect script - were the stdout stops being redirected to the log file:
Code:
exp_send -s "no snmp-server community C00r-H3@l view cutdown RO 10\r"
The expect script runs completely without error (except for the logging issue) - so I really don't know what could be the problem as to why it just stops redirecting the output.