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

Tcl Script Output Delivered to tftp or Flash

Hello Community,

I have been evaluating the attached Tcl script. At present the results are delivered to email - which is great. However, would it be possible to have the results also sent to a file via tftp server or sent to flash?

Cheers

Carlton

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

You'd have to go through the script and wherever you see "$body" being built, take what you want and write that to a file.  You could open the file close to the beginning with:

set fd [open FILE "w"]

Then write to it with:

puts $fd STRING

View solution in original post

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

You'd have to go through the script and wherever you see "$body" being built, take what you want and write that to a file.  You could open the file close to the beginning with:

set fd [open FILE "w"]

Then write to it with:

puts $fd STRING

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: