# Cisco TCL script write stdout to tftpboot

**URL:** <https://community.unix.com/t/cisco-tcl-script-write-stdout-to-tftpboot/223221>\
**Category:** Shell Programming and Scripting\
**Created:** [December 5, 2008, 11:41am UTC](https://community.unix.com/t/cisco-tcl-script-write-stdout-to-tftpboot/223221 "2008-12-05T11:41:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![research3](https://community.unix.com/letter_avatar/research3/32/5_5575768a8748004e209b776fc1b2916d.png) [@research3](https://community.unix.com/u/research3)\
**Post date:** [December 5, 2008, 11:41am UTC](https://community.unix.com/t/cisco-tcl-script-write-stdout-to-tftpboot/223221/1 "2008-12-05T11:41:06Z")

</div>

I want to log the following stdout:

router(config)#scripting tcl init tftp://192.168.1.1/remote-ping.tcl

# ===================================== tclsh proc rping {} { foreach address { 192.168.1.1 192.168.2.1 } { ping $address re 50 si 1500 }

router(tcl)#rping

Type escape sequence to abort.  
Sending 50, 1500-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:  
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!  
Sending 50, 1500-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:  
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This script will be executed remotly via cron job, and I want to log all the ICMP-replies.

Any suggestion !!
