Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

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

Tcl Script Output Delivered to tftp or Flash

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

1 REPLY
Cisco Employee

Tcl Script Output Delivered to tftp or Flash

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

540
Views
0
Helpful
1
Replies