| View previous topic :: View next topic |
| Author |
Message |
janii Halfop
Joined: 03 Aug 2011 Posts: 41
|
Posted: Sat Jul 13, 2013 9:36 am Post subject: NeeD Sum Help Regarding FTP TCL |
|
|
hello im using ftp.tcl for uploading my score file to my website but after 4 or 5 hours bot stops uploading file and i ve to restart the bot in order to get it work again and this things continue as its a trivia channel cannot restart the bot again n again kindly help me if why the tcl is behaving like this i tried every version of eggdrop but its the same thanks in advance
| Code: |
#This Script Upload files (default: two) to ur remote server#
#If u want Upload More Files, Just Add more lines, ex:
#DEFAULT 2:
#set onefile "file1"
#set twofile "file2"
#
#Add More Lines if u want upload more files.
#
#set threefile "file3"
#set fourfile "file4"
#
#find this line:
#global serverftp ftpuser ftpass sendtime eggpath serverpath onefile twofile
#
#and add this:
#threefile fourfile
#
#example: global serverftp ftpuser ftpass sendtime eggpath serverpath threefile fourfile
#
#And find this lines:
#puts $wurstbaum "put $eggpath/$onefile $serverpath/$twofile"
#
#and add after it's lines:
# puts $wurstbaum "put $eggpath/$threefile $serverpath/$threefile"
# puts $wurstbaum "put $eggpath/$fourfile $serverpath/$fourfile"
#
##########################################################
##########################################################
# Put every x minutes send ur files.
#
set sendtime 10
##########################################################
# Put in ur name file.
#
set onefile "index.html"
##########################################################
# Now enter the hostname of the ftp server where upload.
#
set serverftp "server"
##########################################################
# Username and Password for the ftp account.
#
set ftpuser "user"
set ftpass "pass"
##########################################################
# Path of your files on your shell
#
set eggpath "/home/huntin/lusttty/public_html/"
##########################################################
# Absolute path of ur remote server FTP
#
set serverpath "/public_html/stats/"
###################################################################
## DONT CHANGE ANYTHING BELOW UNLESS YOU KNOW WHAT YOU ARE DOING ##
###################################################################
if {![info exists putinftp_running]} {
timer $sendtime putinftp
set putinftp_running 1
}
proc putinftp { } {
global serverftp ftpuser ftpass sendtime eggpath serverpath onefile twofile
putlog "PutinFtp.TCL: Uploading"
set ftpclient [exec which ftp]
set wurstbaum [open "|$ftpclient -n $serverftp" w]
puts $wurstbaum "user $ftpuser $ftpass"
puts $wurstbaum "bin"
puts $wurstbaum "put $eggpath/$onefile $serverpath/$onefile"
puts $wurstbaum "quit"
putlog "PutinFtp.TCL: Uploaded File"
close $wurstbaum
timer $sendtime putinftp
return 1
}
putlog "4-==PutinFtp.TCL\: v1.0 by meca loaded.==-"
|
|
|
| Back to top |
|
 |
janii Halfop
Joined: 03 Aug 2011 Posts: 41
|
Posted: Mon Jul 29, 2013 5:09 pm Post subject: No one ? |
|
|
| Hey kindly help me out ... thanx |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
|
| Back to top |
|
 |
janii Halfop
Joined: 03 Aug 2011 Posts: 41
|
Posted: Wed Aug 21, 2013 7:38 am Post subject: |
|
|
| Thanx willyw for ur help and reply i really appreciate it but tht wasnt which was looking for i just want sum1 to edit my tcl so it shldnt stop uploading trivia score file ... thanks once again |
|
| Back to top |
|
 |
|