cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
945
Views
0
Helpful
1
Replies
raymond wang
Beginner

how to export the tcl script out to a file on 7k

Hi 

I just want to run a ping or trace tcl script on the 7k, but how to export the output to a file automatically? I can log the output from securecrt but try to find a easier way.

Thanks

1 REPLY 1
Joe Clarke
Hall of Fame Cisco Employee

Assume the output is in a variable called $output, you can do:

set fd [open "flash:output.txt" w]

puts $fd $output

close $fd