cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
1059
Views
0
Helpful
1
Replies

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

raymond wang
Level 1
Level 1

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
Cisco Employee
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