newer.tcl

Go to the documentation of this file.
00001 /* ! /bin/sh*/
00002 /*  -*- tcl -*- \*/
00003 exec tclsh "$0" ${1+"$@"}
00004 
00005 package require Tcl 8.3
00006 package require ftp 2.0
00007 
00008 if { [ conn =  [ftp::Open ftp.scriptics.com  anonymous xxxx]] != -1} {
00009         if {[ftp::Newer $conn /pub/tcl/httpd/tclhttpd.tar.gz /usr/local/src/tclhttpd.tgz]} {
00010         exec echo "New httpd arrived!" | mailx -s ANNOUNCE root
00011     }
00012     ftp::Close $conn
00013 }
00014 
00015 

Generated on 21 Sep 2010 for Gui by  doxygen 1.6.1