when it's try to use the ftp to upload the html generated by the tcl ...
this is a part of the tcl reffering to ftp , how i change it to use the ftp in windows? i tryed to put ftp.exe at the dir of windrop but it was not usefullset cs(ftperror) [catch {set cs(ftpclient) [exec which ftp]}]; set cs(rehash) 1
if {$cs(ftperror) && [file executable /usr/bin/ftp]} {set cs(ftpclient) "/usr/bin/ftp"; set cs(ftperror) 0}
if {$cs(ftperror) && [file executable /bin/ftp]} {set cs(ftpclient) "/bin/ftp"; set cs(ftperror) 0}
if {$cs(ftperror) && [info commands auto_execok] != ""} {
set cs(ftpclient) [auto_execok ftp]
if {$cs(ftpclient) != ""} {set cs(ftperror) 0}
}
if {$cs(ftperror)} {putlog " Cannot find FTP client."}
here is the another line of the tcl
actually the msg i receive from the bot is "CHATstats: An error occured while trying to use FTP"2 {set ftperror [catch {
set ftpid [open "|$cs(ftpclient) -n $cs(ftpname) $cs(ftpport)" w]
puts $ftpid "user $cs(username) $cs(password)"
foreach a $ullist {
if {[file exists $a]} {
puts $ftpid "put $a $cs(ftpfolder)[lindex [split $a "/"] end]"
} else {putlog "CHATstats: Skipped uploading $a, file not found."}
}
puts $ftpid "quit"
close $ftpid
}]
if {$ftperror} {putlog "CHATstats: An error occured while trying to use FTP."}
foreach a $ullist {file delete -force $a}
}
}
}
someone help me to edit this to use this tcl in my windows?
the chatstats.tcl is avaiable on http://www.egghelp.org/cgi-bin/tcl_arch ... oad&id=542
thanks